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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Detailed information concerning an error generated during the setting of configuration data for a CloudFormation extension.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct BatchDescribeTypeConfigurationsError {
    /// <p>The error code.</p>
    pub error_code: ::std::option::Option<::std::string::String>,
    /// <p>The error message.</p>
    pub error_message: ::std::option::Option<::std::string::String>,
    /// <p>Identifying information for the configuration of a CloudFormation extension.</p>
    pub type_configuration_identifier: ::std::option::Option<crate::types::TypeConfigurationIdentifier>,
}
impl BatchDescribeTypeConfigurationsError {
    /// <p>The error code.</p>
    pub fn error_code(&self) -> ::std::option::Option<&str> {
        self.error_code.as_deref()
    }
    /// <p>The error message.</p>
    pub fn error_message(&self) -> ::std::option::Option<&str> {
        self.error_message.as_deref()
    }
    /// <p>Identifying information for the configuration of a CloudFormation extension.</p>
    pub fn type_configuration_identifier(&self) -> ::std::option::Option<&crate::types::TypeConfigurationIdentifier> {
        self.type_configuration_identifier.as_ref()
    }
}
impl BatchDescribeTypeConfigurationsError {
    /// Creates a new builder-style object to manufacture [`BatchDescribeTypeConfigurationsError`](crate::types::BatchDescribeTypeConfigurationsError).
    pub fn builder() -> crate::types::builders::BatchDescribeTypeConfigurationsErrorBuilder {
        crate::types::builders::BatchDescribeTypeConfigurationsErrorBuilder::default()
    }
}

/// A builder for [`BatchDescribeTypeConfigurationsError`](crate::types::BatchDescribeTypeConfigurationsError).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct BatchDescribeTypeConfigurationsErrorBuilder {
    pub(crate) error_code: ::std::option::Option<::std::string::String>,
    pub(crate) error_message: ::std::option::Option<::std::string::String>,
    pub(crate) type_configuration_identifier: ::std::option::Option<crate::types::TypeConfigurationIdentifier>,
}
impl BatchDescribeTypeConfigurationsErrorBuilder {
    /// <p>The error code.</p>
    pub fn error_code(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.error_code = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The error code.</p>
    pub fn set_error_code(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.error_code = input;
        self
    }
    /// <p>The error code.</p>
    pub fn get_error_code(&self) -> &::std::option::Option<::std::string::String> {
        &self.error_code
    }
    /// <p>The error message.</p>
    pub fn error_message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.error_message = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The error message.</p>
    pub fn set_error_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.error_message = input;
        self
    }
    /// <p>The error message.</p>
    pub fn get_error_message(&self) -> &::std::option::Option<::std::string::String> {
        &self.error_message
    }
    /// <p>Identifying information for the configuration of a CloudFormation extension.</p>
    pub fn type_configuration_identifier(mut self, input: crate::types::TypeConfigurationIdentifier) -> Self {
        self.type_configuration_identifier = ::std::option::Option::Some(input);
        self
    }
    /// <p>Identifying information for the configuration of a CloudFormation extension.</p>
    pub fn set_type_configuration_identifier(mut self, input: ::std::option::Option<crate::types::TypeConfigurationIdentifier>) -> Self {
        self.type_configuration_identifier = input;
        self
    }
    /// <p>Identifying information for the configuration of a CloudFormation extension.</p>
    pub fn get_type_configuration_identifier(&self) -> &::std::option::Option<crate::types::TypeConfigurationIdentifier> {
        &self.type_configuration_identifier
    }
    /// Consumes the builder and constructs a [`BatchDescribeTypeConfigurationsError`](crate::types::BatchDescribeTypeConfigurationsError).
    pub fn build(self) -> crate::types::BatchDescribeTypeConfigurationsError {
        crate::types::BatchDescribeTypeConfigurationsError {
            error_code: self.error_code,
            error_message: self.error_message,
            type_configuration_identifier: self.type_configuration_identifier,
        }
    }
}