#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetSigningPlatformOutput {
pub platform_id: ::std::option::Option<::std::string::String>,
pub display_name: ::std::option::Option<::std::string::String>,
pub partner: ::std::option::Option<::std::string::String>,
pub target: ::std::option::Option<::std::string::String>,
pub category: ::std::option::Option<crate::types::Category>,
pub signing_configuration: ::std::option::Option<crate::types::SigningConfiguration>,
pub signing_image_format: ::std::option::Option<crate::types::SigningImageFormat>,
pub max_size_in_mb: i32,
pub revocation_supported: bool,
_request_id: Option<String>,
}
impl GetSigningPlatformOutput {
pub fn platform_id(&self) -> ::std::option::Option<&str> {
self.platform_id.as_deref()
}
pub fn display_name(&self) -> ::std::option::Option<&str> {
self.display_name.as_deref()
}
pub fn partner(&self) -> ::std::option::Option<&str> {
self.partner.as_deref()
}
pub fn target(&self) -> ::std::option::Option<&str> {
self.target.as_deref()
}
pub fn category(&self) -> ::std::option::Option<&crate::types::Category> {
self.category.as_ref()
}
pub fn signing_configuration(&self) -> ::std::option::Option<&crate::types::SigningConfiguration> {
self.signing_configuration.as_ref()
}
pub fn signing_image_format(&self) -> ::std::option::Option<&crate::types::SigningImageFormat> {
self.signing_image_format.as_ref()
}
pub fn max_size_in_mb(&self) -> i32 {
self.max_size_in_mb
}
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 {
pub fn builder() -> crate::operation::get_signing_platform::builders::GetSigningPlatformOutputBuilder {
crate::operation::get_signing_platform::builders::GetSigningPlatformOutputBuilder::default()
}
}
#[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 {
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
}
pub fn set_platform_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.platform_id = input;
self
}
pub fn get_platform_id(&self) -> &::std::option::Option<::std::string::String> {
&self.platform_id
}
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
}
pub fn set_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.display_name = input;
self
}
pub fn get_display_name(&self) -> &::std::option::Option<::std::string::String> {
&self.display_name
}
pub fn partner(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.partner = ::std::option::Option::Some(input.into());
self
}
pub fn set_partner(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.partner = input;
self
}
pub fn get_partner(&self) -> &::std::option::Option<::std::string::String> {
&self.partner
}
pub fn target(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.target = ::std::option::Option::Some(input.into());
self
}
pub fn set_target(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.target = input;
self
}
pub fn get_target(&self) -> &::std::option::Option<::std::string::String> {
&self.target
}
pub fn category(mut self, input: crate::types::Category) -> Self {
self.category = ::std::option::Option::Some(input);
self
}
pub fn set_category(mut self, input: ::std::option::Option<crate::types::Category>) -> Self {
self.category = input;
self
}
pub fn get_category(&self) -> &::std::option::Option<crate::types::Category> {
&self.category
}
pub fn signing_configuration(mut self, input: crate::types::SigningConfiguration) -> Self {
self.signing_configuration = ::std::option::Option::Some(input);
self
}
pub fn set_signing_configuration(mut self, input: ::std::option::Option<crate::types::SigningConfiguration>) -> Self {
self.signing_configuration = input;
self
}
pub fn get_signing_configuration(&self) -> &::std::option::Option<crate::types::SigningConfiguration> {
&self.signing_configuration
}
pub fn signing_image_format(mut self, input: crate::types::SigningImageFormat) -> Self {
self.signing_image_format = ::std::option::Option::Some(input);
self
}
pub fn set_signing_image_format(mut self, input: ::std::option::Option<crate::types::SigningImageFormat>) -> Self {
self.signing_image_format = input;
self
}
pub fn get_signing_image_format(&self) -> &::std::option::Option<crate::types::SigningImageFormat> {
&self.signing_image_format
}
pub fn max_size_in_mb(mut self, input: i32) -> Self {
self.max_size_in_mb = ::std::option::Option::Some(input);
self
}
pub fn set_max_size_in_mb(mut self, input: ::std::option::Option<i32>) -> Self {
self.max_size_in_mb = input;
self
}
pub fn get_max_size_in_mb(&self) -> &::std::option::Option<i32> {
&self.max_size_in_mb
}
pub fn revocation_supported(mut self, input: bool) -> Self {
self.revocation_supported = ::std::option::Option::Some(input);
self
}
pub fn set_revocation_supported(mut self, input: ::std::option::Option<bool>) -> Self {
self.revocation_supported = input;
self
}
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
}
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,
}
}
}