aws_sdk_connect/operation/describe_instance/
_describe_instance_output.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct DescribeInstanceOutput {
6    /// <p>The name of the instance.</p>
7    pub instance: ::std::option::Option<crate::types::Instance>,
8    /// <p>Status information about the replication process. This field is included only when you are using the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_ReplicateInstance.html">ReplicateInstance</a> API to replicate an Amazon Connect instance across Amazon Web Services Regions. For information about replicating Amazon Connect instances, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/create-replica-connect-instance.html">Create a replica of your existing Amazon Connect instance</a> in the <i>Amazon Connect Administrator Guide</i>.</p>
9    pub replication_configuration: ::std::option::Option<crate::types::ReplicationConfiguration>,
10    _request_id: Option<String>,
11}
12impl DescribeInstanceOutput {
13    /// <p>The name of the instance.</p>
14    pub fn instance(&self) -> ::std::option::Option<&crate::types::Instance> {
15        self.instance.as_ref()
16    }
17    /// <p>Status information about the replication process. This field is included only when you are using the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_ReplicateInstance.html">ReplicateInstance</a> API to replicate an Amazon Connect instance across Amazon Web Services Regions. For information about replicating Amazon Connect instances, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/create-replica-connect-instance.html">Create a replica of your existing Amazon Connect instance</a> in the <i>Amazon Connect Administrator Guide</i>.</p>
18    pub fn replication_configuration(&self) -> ::std::option::Option<&crate::types::ReplicationConfiguration> {
19        self.replication_configuration.as_ref()
20    }
21}
22impl ::aws_types::request_id::RequestId for DescribeInstanceOutput {
23    fn request_id(&self) -> Option<&str> {
24        self._request_id.as_deref()
25    }
26}
27impl DescribeInstanceOutput {
28    /// Creates a new builder-style object to manufacture [`DescribeInstanceOutput`](crate::operation::describe_instance::DescribeInstanceOutput).
29    pub fn builder() -> crate::operation::describe_instance::builders::DescribeInstanceOutputBuilder {
30        crate::operation::describe_instance::builders::DescribeInstanceOutputBuilder::default()
31    }
32}
33
34/// A builder for [`DescribeInstanceOutput`](crate::operation::describe_instance::DescribeInstanceOutput).
35#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
36#[non_exhaustive]
37pub struct DescribeInstanceOutputBuilder {
38    pub(crate) instance: ::std::option::Option<crate::types::Instance>,
39    pub(crate) replication_configuration: ::std::option::Option<crate::types::ReplicationConfiguration>,
40    _request_id: Option<String>,
41}
42impl DescribeInstanceOutputBuilder {
43    /// <p>The name of the instance.</p>
44    pub fn instance(mut self, input: crate::types::Instance) -> Self {
45        self.instance = ::std::option::Option::Some(input);
46        self
47    }
48    /// <p>The name of the instance.</p>
49    pub fn set_instance(mut self, input: ::std::option::Option<crate::types::Instance>) -> Self {
50        self.instance = input;
51        self
52    }
53    /// <p>The name of the instance.</p>
54    pub fn get_instance(&self) -> &::std::option::Option<crate::types::Instance> {
55        &self.instance
56    }
57    /// <p>Status information about the replication process. This field is included only when you are using the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_ReplicateInstance.html">ReplicateInstance</a> API to replicate an Amazon Connect instance across Amazon Web Services Regions. For information about replicating Amazon Connect instances, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/create-replica-connect-instance.html">Create a replica of your existing Amazon Connect instance</a> in the <i>Amazon Connect Administrator Guide</i>.</p>
58    pub fn replication_configuration(mut self, input: crate::types::ReplicationConfiguration) -> Self {
59        self.replication_configuration = ::std::option::Option::Some(input);
60        self
61    }
62    /// <p>Status information about the replication process. This field is included only when you are using the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_ReplicateInstance.html">ReplicateInstance</a> API to replicate an Amazon Connect instance across Amazon Web Services Regions. For information about replicating Amazon Connect instances, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/create-replica-connect-instance.html">Create a replica of your existing Amazon Connect instance</a> in the <i>Amazon Connect Administrator Guide</i>.</p>
63    pub fn set_replication_configuration(mut self, input: ::std::option::Option<crate::types::ReplicationConfiguration>) -> Self {
64        self.replication_configuration = input;
65        self
66    }
67    /// <p>Status information about the replication process. This field is included only when you are using the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_ReplicateInstance.html">ReplicateInstance</a> API to replicate an Amazon Connect instance across Amazon Web Services Regions. For information about replicating Amazon Connect instances, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/create-replica-connect-instance.html">Create a replica of your existing Amazon Connect instance</a> in the <i>Amazon Connect Administrator Guide</i>.</p>
68    pub fn get_replication_configuration(&self) -> &::std::option::Option<crate::types::ReplicationConfiguration> {
69        &self.replication_configuration
70    }
71    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
72        self._request_id = Some(request_id.into());
73        self
74    }
75
76    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
77        self._request_id = request_id;
78        self
79    }
80    /// Consumes the builder and constructs a [`DescribeInstanceOutput`](crate::operation::describe_instance::DescribeInstanceOutput).
81    pub fn build(self) -> crate::operation::describe_instance::DescribeInstanceOutput {
82        crate::operation::describe_instance::DescribeInstanceOutput {
83            instance: self.instance,
84            replication_configuration: self.replication_configuration,
85            _request_id: self._request_id,
86        }
87    }
88}