aws_sdk_iot/types/
_signing_profile_parameter.rs1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct SigningProfileParameter {
7 pub certificate_arn: ::std::option::Option<::std::string::String>,
9 pub platform: ::std::option::Option<::std::string::String>,
11 pub certificate_path_on_device: ::std::option::Option<::std::string::String>,
13}
14impl SigningProfileParameter {
15 pub fn certificate_arn(&self) -> ::std::option::Option<&str> {
17 self.certificate_arn.as_deref()
18 }
19 pub fn platform(&self) -> ::std::option::Option<&str> {
21 self.platform.as_deref()
22 }
23 pub fn certificate_path_on_device(&self) -> ::std::option::Option<&str> {
25 self.certificate_path_on_device.as_deref()
26 }
27}
28impl SigningProfileParameter {
29 pub fn builder() -> crate::types::builders::SigningProfileParameterBuilder {
31 crate::types::builders::SigningProfileParameterBuilder::default()
32 }
33}
34
35#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
37#[non_exhaustive]
38pub struct SigningProfileParameterBuilder {
39 pub(crate) certificate_arn: ::std::option::Option<::std::string::String>,
40 pub(crate) platform: ::std::option::Option<::std::string::String>,
41 pub(crate) certificate_path_on_device: ::std::option::Option<::std::string::String>,
42}
43impl SigningProfileParameterBuilder {
44 pub fn certificate_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
46 self.certificate_arn = ::std::option::Option::Some(input.into());
47 self
48 }
49 pub fn set_certificate_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
51 self.certificate_arn = input;
52 self
53 }
54 pub fn get_certificate_arn(&self) -> &::std::option::Option<::std::string::String> {
56 &self.certificate_arn
57 }
58 pub fn platform(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
60 self.platform = ::std::option::Option::Some(input.into());
61 self
62 }
63 pub fn set_platform(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
65 self.platform = input;
66 self
67 }
68 pub fn get_platform(&self) -> &::std::option::Option<::std::string::String> {
70 &self.platform
71 }
72 pub fn certificate_path_on_device(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
74 self.certificate_path_on_device = ::std::option::Option::Some(input.into());
75 self
76 }
77 pub fn set_certificate_path_on_device(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
79 self.certificate_path_on_device = input;
80 self
81 }
82 pub fn get_certificate_path_on_device(&self) -> &::std::option::Option<::std::string::String> {
84 &self.certificate_path_on_device
85 }
86 pub fn build(self) -> crate::types::SigningProfileParameter {
88 crate::types::SigningProfileParameter {
89 certificate_arn: self.certificate_arn,
90 platform: self.platform,
91 certificate_path_on_device: self.certificate_path_on_device,
92 }
93 }
94}