aws_sdk_iot/types/
_signing_profile_parameter.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>Describes the code-signing profile.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct SigningProfileParameter {
7    /// <p>Certificate ARN.</p>
8    pub certificate_arn: ::std::option::Option<::std::string::String>,
9    /// <p>The hardware platform of your device.</p>
10    pub platform: ::std::option::Option<::std::string::String>,
11    /// <p>The location of the code-signing certificate on your device.</p>
12    pub certificate_path_on_device: ::std::option::Option<::std::string::String>,
13}
14impl SigningProfileParameter {
15    /// <p>Certificate ARN.</p>
16    pub fn certificate_arn(&self) -> ::std::option::Option<&str> {
17        self.certificate_arn.as_deref()
18    }
19    /// <p>The hardware platform of your device.</p>
20    pub fn platform(&self) -> ::std::option::Option<&str> {
21        self.platform.as_deref()
22    }
23    /// <p>The location of the code-signing certificate on your device.</p>
24    pub fn certificate_path_on_device(&self) -> ::std::option::Option<&str> {
25        self.certificate_path_on_device.as_deref()
26    }
27}
28impl SigningProfileParameter {
29    /// Creates a new builder-style object to manufacture [`SigningProfileParameter`](crate::types::SigningProfileParameter).
30    pub fn builder() -> crate::types::builders::SigningProfileParameterBuilder {
31        crate::types::builders::SigningProfileParameterBuilder::default()
32    }
33}
34
35/// A builder for [`SigningProfileParameter`](crate::types::SigningProfileParameter).
36#[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    /// <p>Certificate ARN.</p>
45    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    /// <p>Certificate ARN.</p>
50    pub fn set_certificate_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
51        self.certificate_arn = input;
52        self
53    }
54    /// <p>Certificate ARN.</p>
55    pub fn get_certificate_arn(&self) -> &::std::option::Option<::std::string::String> {
56        &self.certificate_arn
57    }
58    /// <p>The hardware platform of your device.</p>
59    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    /// <p>The hardware platform of your device.</p>
64    pub fn set_platform(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
65        self.platform = input;
66        self
67    }
68    /// <p>The hardware platform of your device.</p>
69    pub fn get_platform(&self) -> &::std::option::Option<::std::string::String> {
70        &self.platform
71    }
72    /// <p>The location of the code-signing certificate on your device.</p>
73    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    /// <p>The location of the code-signing certificate on your device.</p>
78    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    /// <p>The location of the code-signing certificate on your device.</p>
83    pub fn get_certificate_path_on_device(&self) -> &::std::option::Option<::std::string::String> {
84        &self.certificate_path_on_device
85    }
86    /// Consumes the builder and constructs a [`SigningProfileParameter`](crate::types::SigningProfileParameter).
87    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}