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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Contains information about the signing configurations and parameters that are used to perform a code-signing job.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct SigningPlatform {
    /// <p>The ID of a signing platform.</p>
    pub platform_id: ::std::option::Option<::std::string::String>,
    /// <p>The display name of a signing platform.</p>
    pub display_name: ::std::option::Option<::std::string::String>,
    /// <p>Any partner entities linked to a signing platform.</p>
    pub partner: ::std::option::Option<::std::string::String>,
    /// <p>The types of targets that can be signed by a signing platform.</p>
    pub target: ::std::option::Option<::std::string::String>,
    /// <p>The category of a signing platform.</p>
    pub category: ::std::option::Option<crate::types::Category>,
    /// <p>The configuration of a signing platform. This includes the designated hash algorithm and encryption algorithm of a signing platform.</p>
    pub signing_configuration: ::std::option::Option<crate::types::SigningConfiguration>,
    /// <p>The image format of a AWS Signer platform or profile.</p>
    pub signing_image_format: ::std::option::Option<crate::types::SigningImageFormat>,
    /// <p>The maximum size (in MB) of code that can be signed by a signing platform.</p>
    pub max_size_in_mb: i32,
    /// <p>Indicates whether revocation is supported for the platform.</p>
    pub revocation_supported: bool,
}
impl SigningPlatform {
    /// <p>The ID of a signing platform.</p>
    pub fn platform_id(&self) -> ::std::option::Option<&str> {
        self.platform_id.as_deref()
    }
    /// <p>The display name of a signing platform.</p>
    pub fn display_name(&self) -> ::std::option::Option<&str> {
        self.display_name.as_deref()
    }
    /// <p>Any partner entities linked to a signing platform.</p>
    pub fn partner(&self) -> ::std::option::Option<&str> {
        self.partner.as_deref()
    }
    /// <p>The types of targets that can be signed by a signing platform.</p>
    pub fn target(&self) -> ::std::option::Option<&str> {
        self.target.as_deref()
    }
    /// <p>The category of a signing platform.</p>
    pub fn category(&self) -> ::std::option::Option<&crate::types::Category> {
        self.category.as_ref()
    }
    /// <p>The configuration of a signing platform. This includes the designated hash algorithm and encryption algorithm of a signing platform.</p>
    pub fn signing_configuration(&self) -> ::std::option::Option<&crate::types::SigningConfiguration> {
        self.signing_configuration.as_ref()
    }
    /// <p>The image format of a AWS Signer platform or profile.</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 code that can be signed by a signing platform.</p>
    pub fn max_size_in_mb(&self) -> i32 {
        self.max_size_in_mb
    }
    /// <p>Indicates whether revocation is supported for the platform.</p>
    pub fn revocation_supported(&self) -> bool {
        self.revocation_supported
    }
}
impl SigningPlatform {
    /// Creates a new builder-style object to manufacture [`SigningPlatform`](crate::types::SigningPlatform).
    pub fn builder() -> crate::types::builders::SigningPlatformBuilder {
        crate::types::builders::SigningPlatformBuilder::default()
    }
}

/// A builder for [`SigningPlatform`](crate::types::SigningPlatform).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct SigningPlatformBuilder {
    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>,
}
impl SigningPlatformBuilder {
    /// <p>The ID of a 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 a 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 a signing platform.</p>
    pub fn get_platform_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.platform_id
    }
    /// <p>The display name of a 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 a 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 a signing platform.</p>
    pub fn get_display_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.display_name
    }
    /// <p>Any partner entities linked to a 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>Any partner entities linked to a signing platform.</p>
    pub fn set_partner(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.partner = input;
        self
    }
    /// <p>Any partner entities linked to a signing platform.</p>
    pub fn get_partner(&self) -> &::std::option::Option<::std::string::String> {
        &self.partner
    }
    /// <p>The types of targets that can be signed by a 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 types of targets that can be signed by a signing platform.</p>
    pub fn set_target(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.target = input;
        self
    }
    /// <p>The types of targets that can be signed by a signing platform.</p>
    pub fn get_target(&self) -> &::std::option::Option<::std::string::String> {
        &self.target
    }
    /// <p>The category of a signing platform.</p>
    pub fn category(mut self, input: crate::types::Category) -> Self {
        self.category = ::std::option::Option::Some(input);
        self
    }
    /// <p>The category of a signing platform.</p>
    pub fn set_category(mut self, input: ::std::option::Option<crate::types::Category>) -> Self {
        self.category = input;
        self
    }
    /// <p>The category of a signing platform.</p>
    pub fn get_category(&self) -> &::std::option::Option<crate::types::Category> {
        &self.category
    }
    /// <p>The configuration of a signing platform. This includes the designated hash algorithm and encryption algorithm of a signing platform.</p>
    pub fn signing_configuration(mut self, input: crate::types::SigningConfiguration) -> Self {
        self.signing_configuration = ::std::option::Option::Some(input);
        self
    }
    /// <p>The configuration of a signing platform. This includes the designated hash algorithm and encryption algorithm of a signing platform.</p>
    pub fn set_signing_configuration(mut self, input: ::std::option::Option<crate::types::SigningConfiguration>) -> Self {
        self.signing_configuration = input;
        self
    }
    /// <p>The configuration of a signing platform. This includes the designated hash algorithm and encryption algorithm of a signing platform.</p>
    pub fn get_signing_configuration(&self) -> &::std::option::Option<crate::types::SigningConfiguration> {
        &self.signing_configuration
    }
    /// <p>The image format of a AWS Signer platform or profile.</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 image format of a AWS Signer platform or profile.</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 image format of a AWS Signer platform or profile.</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 code that can be signed by a signing 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 code that can be signed by a signing 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 code that can be signed by a signing platform.</p>
    pub fn get_max_size_in_mb(&self) -> &::std::option::Option<i32> {
        &self.max_size_in_mb
    }
    /// <p>Indicates whether revocation is supported for the platform.</p>
    pub fn revocation_supported(mut self, input: bool) -> Self {
        self.revocation_supported = ::std::option::Option::Some(input);
        self
    }
    /// <p>Indicates whether revocation is supported for the platform.</p>
    pub fn set_revocation_supported(mut self, input: ::std::option::Option<bool>) -> Self {
        self.revocation_supported = input;
        self
    }
    /// <p>Indicates whether revocation is supported for the platform.</p>
    pub fn get_revocation_supported(&self) -> &::std::option::Option<bool> {
        &self.revocation_supported
    }
    /// Consumes the builder and constructs a [`SigningPlatform`](crate::types::SigningPlatform).
    pub fn build(self) -> crate::types::SigningPlatform {
        crate::types::SigningPlatform {
            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(),
        }
    }
}