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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Describes a network resource.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct NetworkResourceSummary {
    /// <p>The ARN of the gateway.</p>
    pub registered_gateway_arn: ::std::option::Option<::std::string::String>,
    /// <p>The ARN of the resource.</p>
    pub resource_arn: ::std::option::Option<::std::string::String>,
    /// <p>The resource type.</p>
    pub resource_type: ::std::option::Option<::std::string::String>,
    /// <p>Information about the resource, in JSON format. Network Manager gets this information by describing the resource using its Describe API call.</p>
    pub definition: ::std::option::Option<::std::string::String>,
    /// <p>The value for the Name tag.</p>
    pub name_tag: ::std::option::Option<::std::string::String>,
    /// <p>Indicates whether this is a middlebox appliance.</p>
    pub is_middlebox: bool,
}
impl NetworkResourceSummary {
    /// <p>The ARN of the gateway.</p>
    pub fn registered_gateway_arn(&self) -> ::std::option::Option<&str> {
        self.registered_gateway_arn.as_deref()
    }
    /// <p>The ARN of the resource.</p>
    pub fn resource_arn(&self) -> ::std::option::Option<&str> {
        self.resource_arn.as_deref()
    }
    /// <p>The resource type.</p>
    pub fn resource_type(&self) -> ::std::option::Option<&str> {
        self.resource_type.as_deref()
    }
    /// <p>Information about the resource, in JSON format. Network Manager gets this information by describing the resource using its Describe API call.</p>
    pub fn definition(&self) -> ::std::option::Option<&str> {
        self.definition.as_deref()
    }
    /// <p>The value for the Name tag.</p>
    pub fn name_tag(&self) -> ::std::option::Option<&str> {
        self.name_tag.as_deref()
    }
    /// <p>Indicates whether this is a middlebox appliance.</p>
    pub fn is_middlebox(&self) -> bool {
        self.is_middlebox
    }
}
impl NetworkResourceSummary {
    /// Creates a new builder-style object to manufacture [`NetworkResourceSummary`](crate::types::NetworkResourceSummary).
    pub fn builder() -> crate::types::builders::NetworkResourceSummaryBuilder {
        crate::types::builders::NetworkResourceSummaryBuilder::default()
    }
}

/// A builder for [`NetworkResourceSummary`](crate::types::NetworkResourceSummary).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct NetworkResourceSummaryBuilder {
    pub(crate) registered_gateway_arn: ::std::option::Option<::std::string::String>,
    pub(crate) resource_arn: ::std::option::Option<::std::string::String>,
    pub(crate) resource_type: ::std::option::Option<::std::string::String>,
    pub(crate) definition: ::std::option::Option<::std::string::String>,
    pub(crate) name_tag: ::std::option::Option<::std::string::String>,
    pub(crate) is_middlebox: ::std::option::Option<bool>,
}
impl NetworkResourceSummaryBuilder {
    /// <p>The ARN of the gateway.</p>
    pub fn registered_gateway_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.registered_gateway_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ARN of the gateway.</p>
    pub fn set_registered_gateway_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.registered_gateway_arn = input;
        self
    }
    /// <p>The ARN of the gateway.</p>
    pub fn get_registered_gateway_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.registered_gateway_arn
    }
    /// <p>The ARN of the resource.</p>
    pub fn resource_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.resource_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ARN of the resource.</p>
    pub fn set_resource_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.resource_arn = input;
        self
    }
    /// <p>The ARN of the resource.</p>
    pub fn get_resource_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.resource_arn
    }
    /// <p>The resource type.</p>
    pub fn resource_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.resource_type = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The resource type.</p>
    pub fn set_resource_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.resource_type = input;
        self
    }
    /// <p>The resource type.</p>
    pub fn get_resource_type(&self) -> &::std::option::Option<::std::string::String> {
        &self.resource_type
    }
    /// <p>Information about the resource, in JSON format. Network Manager gets this information by describing the resource using its Describe API call.</p>
    pub fn definition(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.definition = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Information about the resource, in JSON format. Network Manager gets this information by describing the resource using its Describe API call.</p>
    pub fn set_definition(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.definition = input;
        self
    }
    /// <p>Information about the resource, in JSON format. Network Manager gets this information by describing the resource using its Describe API call.</p>
    pub fn get_definition(&self) -> &::std::option::Option<::std::string::String> {
        &self.definition
    }
    /// <p>The value for the Name tag.</p>
    pub fn name_tag(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.name_tag = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The value for the Name tag.</p>
    pub fn set_name_tag(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.name_tag = input;
        self
    }
    /// <p>The value for the Name tag.</p>
    pub fn get_name_tag(&self) -> &::std::option::Option<::std::string::String> {
        &self.name_tag
    }
    /// <p>Indicates whether this is a middlebox appliance.</p>
    pub fn is_middlebox(mut self, input: bool) -> Self {
        self.is_middlebox = ::std::option::Option::Some(input);
        self
    }
    /// <p>Indicates whether this is a middlebox appliance.</p>
    pub fn set_is_middlebox(mut self, input: ::std::option::Option<bool>) -> Self {
        self.is_middlebox = input;
        self
    }
    /// <p>Indicates whether this is a middlebox appliance.</p>
    pub fn get_is_middlebox(&self) -> &::std::option::Option<bool> {
        &self.is_middlebox
    }
    /// Consumes the builder and constructs a [`NetworkResourceSummary`](crate::types::NetworkResourceSummary).
    pub fn build(self) -> crate::types::NetworkResourceSummary {
        crate::types::NetworkResourceSummary {
            registered_gateway_arn: self.registered_gateway_arn,
            resource_arn: self.resource_arn,
            resource_type: self.resource_type,
            definition: self.definition,
            name_tag: self.name_tag,
            is_middlebox: self.is_middlebox.unwrap_or_default(),
        }
    }
}