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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetSigningPlatformOutput {
    /// <p>The ID of the target signing platform.</p>
    pub platform_id: ::std::option::Option<::std::string::String>,
    /// <p>The display name of the target signing platform.</p>
    pub display_name: ::std::option::Option<::std::string::String>,
    /// <p>A list of partner entities that use the target signing platform.</p>
    pub partner: ::std::option::Option<::std::string::String>,
    /// <p>The validation template that is used by the target signing platform.</p>
    pub target: ::std::option::Option<::std::string::String>,
    /// <p>The category type of the target signing platform.</p>
    pub category: ::std::option::Option<crate::types::Category>,
    /// <p>A list of configurations applied to the target platform at signing.</p>
    pub signing_configuration: ::std::option::Option<crate::types::SigningConfiguration>,
    /// <p>The format of the target platform's signing image.</p>
    pub signing_image_format: ::std::option::Option<crate::types::SigningImageFormat>,
    /// <p>The maximum size (in MB) of the payload that can be signed by the target platform.</p>
    pub max_size_in_mb: i32,
    /// <p>A flag indicating whether signatures generated for the signing platform can be revoked.</p>
    pub revocation_supported: bool,
    _request_id: Option<String>,
}
impl GetSigningPlatformOutput {
    /// <p>The ID of the target signing platform.</p>
    pub fn platform_id(&self) -> ::std::option::Option<&str> {
        self.platform_id.as_deref()
    }
    /// <p>The display name of the target signing platform.</p>
    pub fn display_name(&self) -> ::std::option::Option<&str> {
        self.display_name.as_deref()
    }
    /// <p>A list of partner entities that use the target signing platform.</p>
    pub fn partner(&self) -> ::std::option::Option<&str> {
        self.partner.as_deref()
    }
    /// <p>The validation template that is used by the target signing platform.</p>
    pub fn target(&self) -> ::std::option::Option<&str> {
        self.target.as_deref()
    }
    /// <p>The category type of the target signing platform.</p>
    pub fn category(&self) -> ::std::option::Option<&crate::types::Category> {
        self.category.as_ref()
    }
    /// <p>A list of configurations applied to the target platform at signing.</p>
    pub fn signing_configuration(&self) -> ::std::option::Option<&crate::types::SigningConfiguration> {
        self.signing_configuration.as_ref()
    }
    /// <p>The format of the target platform's signing image.</p>
    pub fn signing_image_format(&self) -> ::std::option::Option<&crate::types::SigningImageFormat> {
        self.signing_image_format.as_ref()
    }
    /// <p>The maximum size (in MB) of the payload that can be signed by the target platform.</p>
    pub fn max_size_in_mb(&self) -> i32 {
        self.max_size_in_mb
    }
    /// <p>A flag indicating whether signatures generated for the signing platform can be revoked.</p>
    pub fn revocation_supported(&self) -> bool {
        self.revocation_supported
    }
}
impl ::aws_types::request_id::RequestId for GetSigningPlatformOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetSigningPlatformOutput {
    /// Creates a new builder-style object to manufacture [`GetSigningPlatformOutput`](crate::operation::get_signing_platform::GetSigningPlatformOutput).
    pub fn builder() -> crate::operation::get_signing_platform::builders::GetSigningPlatformOutputBuilder {
        crate::operation::get_signing_platform::builders::GetSigningPlatformOutputBuilder::default()
    }
}

/// A builder for [`GetSigningPlatformOutput`](crate::operation::get_signing_platform::GetSigningPlatformOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetSigningPlatformOutputBuilder {
    pub(crate) platform_id: ::std::option::Option<::std::string::String>,
    pub(crate) display_name: ::std::option::Option<::std::string::String>,
    pub(crate) partner: ::std::option::Option<::std::string::String>,
    pub(crate) target: ::std::option::Option<::std::string::String>,
    pub(crate) category: ::std::option::Option<crate::types::Category>,
    pub(crate) signing_configuration: ::std::option::Option<crate::types::SigningConfiguration>,
    pub(crate) signing_image_format: ::std::option::Option<crate::types::SigningImageFormat>,
    pub(crate) max_size_in_mb: ::std::option::Option<i32>,
    pub(crate) revocation_supported: ::std::option::Option<bool>,
    _request_id: Option<String>,
}
impl GetSigningPlatformOutputBuilder {
    /// <p>The ID of the target signing platform.</p>
    pub fn platform_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.platform_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the target signing platform.</p>
    pub fn set_platform_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.platform_id = input;
        self
    }
    /// <p>The ID of the target signing platform.</p>
    pub fn get_platform_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.platform_id
    }
    /// <p>The display name of the target signing platform.</p>
    pub fn display_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.display_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The display name of the target signing platform.</p>
    pub fn set_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.display_name = input;
        self
    }
    /// <p>The display name of the target signing platform.</p>
    pub fn get_display_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.display_name
    }
    /// <p>A list of partner entities that use the target signing platform.</p>
    pub fn partner(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.partner = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A list of partner entities that use the target signing platform.</p>
    pub fn set_partner(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.partner = input;
        self
    }
    /// <p>A list of partner entities that use the target signing platform.</p>
    pub fn get_partner(&self) -> &::std::option::Option<::std::string::String> {
        &self.partner
    }
    /// <p>The validation template that is used by the target signing platform.</p>
    pub fn target(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.target = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The validation template that is used by the target signing platform.</p>
    pub fn set_target(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.target = input;
        self
    }
    /// <p>The validation template that is used by the target signing platform.</p>
    pub fn get_target(&self) -> &::std::option::Option<::std::string::String> {
        &self.target
    }
    /// <p>The category type of the target signing platform.</p>
    pub fn category(mut self, input: crate::types::Category) -> Self {
        self.category = ::std::option::Option::Some(input);
        self
    }
    /// <p>The category type of the target signing platform.</p>
    pub fn set_category(mut self, input: ::std::option::Option<crate::types::Category>) -> Self {
        self.category = input;
        self
    }
    /// <p>The category type of the target signing platform.</p>
    pub fn get_category(&self) -> &::std::option::Option<crate::types::Category> {
        &self.category
    }
    /// <p>A list of configurations applied to the target platform at signing.</p>
    pub fn signing_configuration(mut self, input: crate::types::SigningConfiguration) -> Self {
        self.signing_configuration = ::std::option::Option::Some(input);
        self
    }
    /// <p>A list of configurations applied to the target platform at signing.</p>
    pub fn set_signing_configuration(mut self, input: ::std::option::Option<crate::types::SigningConfiguration>) -> Self {
        self.signing_configuration = input;
        self
    }
    /// <p>A list of configurations applied to the target platform at signing.</p>
    pub fn get_signing_configuration(&self) -> &::std::option::Option<crate::types::SigningConfiguration> {
        &self.signing_configuration
    }
    /// <p>The format of the target platform's signing image.</p>
    pub fn signing_image_format(mut self, input: crate::types::SigningImageFormat) -> Self {
        self.signing_image_format = ::std::option::Option::Some(input);
        self
    }
    /// <p>The format of the target platform's signing image.</p>
    pub fn set_signing_image_format(mut self, input: ::std::option::Option<crate::types::SigningImageFormat>) -> Self {
        self.signing_image_format = input;
        self
    }
    /// <p>The format of the target platform's signing image.</p>
    pub fn get_signing_image_format(&self) -> &::std::option::Option<crate::types::SigningImageFormat> {
        &self.signing_image_format
    }
    /// <p>The maximum size (in MB) of the payload that can be signed by the target platform.</p>
    pub fn max_size_in_mb(mut self, input: i32) -> Self {
        self.max_size_in_mb = ::std::option::Option::Some(input);
        self
    }
    /// <p>The maximum size (in MB) of the payload that can be signed by the target platform.</p>
    pub fn set_max_size_in_mb(mut self, input: ::std::option::Option<i32>) -> Self {
        self.max_size_in_mb = input;
        self
    }
    /// <p>The maximum size (in MB) of the payload that can be signed by the target platform.</p>
    pub fn get_max_size_in_mb(&self) -> &::std::option::Option<i32> {
        &self.max_size_in_mb
    }
    /// <p>A flag indicating whether signatures generated for the signing platform can be revoked.</p>
    pub fn revocation_supported(mut self, input: bool) -> Self {
        self.revocation_supported = ::std::option::Option::Some(input);
        self
    }
    /// <p>A flag indicating whether signatures generated for the signing platform can be revoked.</p>
    pub fn set_revocation_supported(mut self, input: ::std::option::Option<bool>) -> Self {
        self.revocation_supported = input;
        self
    }
    /// <p>A flag indicating whether signatures generated for the signing platform can be revoked.</p>
    pub fn get_revocation_supported(&self) -> &::std::option::Option<bool> {
        &self.revocation_supported
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`GetSigningPlatformOutput`](crate::operation::get_signing_platform::GetSigningPlatformOutput).
    pub fn build(self) -> crate::operation::get_signing_platform::GetSigningPlatformOutput {
        crate::operation::get_signing_platform::GetSigningPlatformOutput {
            platform_id: self.platform_id,
            display_name: self.display_name,
            partner: self.partner,
            target: self.target,
            category: self.category,
            signing_configuration: self.signing_configuration,
            signing_image_format: self.signing_image_format,
            max_size_in_mb: self.max_size_in_mb.unwrap_or_default(),
            revocation_supported: self.revocation_supported.unwrap_or_default(),
            _request_id: self._request_id,
        }
    }
}