1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p></p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeContactInput {
    /// <p>UUID of a contact.</p>
    pub contact_id: ::std::option::Option<::std::string::String>,
}
impl DescribeContactInput {
    /// <p>UUID of a contact.</p>
    pub fn contact_id(&self) -> ::std::option::Option<&str> {
        self.contact_id.as_deref()
    }
}
impl DescribeContactInput {
    /// Creates a new builder-style object to manufacture [`DescribeContactInput`](crate::operation::describe_contact::DescribeContactInput).
    pub fn builder() -> crate::operation::describe_contact::builders::DescribeContactInputBuilder {
        crate::operation::describe_contact::builders::DescribeContactInputBuilder::default()
    }
}

/// A builder for [`DescribeContactInput`](crate::operation::describe_contact::DescribeContactInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DescribeContactInputBuilder {
    pub(crate) contact_id: ::std::option::Option<::std::string::String>,
}
impl DescribeContactInputBuilder {
    /// <p>UUID of a contact.</p>
    /// This field is required.
    pub fn contact_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.contact_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>UUID of a contact.</p>
    pub fn set_contact_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.contact_id = input;
        self
    }
    /// <p>UUID of a contact.</p>
    pub fn get_contact_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.contact_id
    }
    /// Consumes the builder and constructs a [`DescribeContactInput`](crate::operation::describe_contact::DescribeContactInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::describe_contact::DescribeContactInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::describe_contact::DescribeContactInput { contact_id: self.contact_id })
    }
}