#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetRevocationStatusInput {
pub signature_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
pub platform_id: ::std::option::Option<::std::string::String>,
pub profile_version_arn: ::std::option::Option<::std::string::String>,
pub job_arn: ::std::option::Option<::std::string::String>,
pub certificate_hashes: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl GetRevocationStatusInput {
pub fn signature_timestamp(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.signature_timestamp.as_ref()
}
pub fn platform_id(&self) -> ::std::option::Option<&str> {
self.platform_id.as_deref()
}
pub fn profile_version_arn(&self) -> ::std::option::Option<&str> {
self.profile_version_arn.as_deref()
}
pub fn job_arn(&self) -> ::std::option::Option<&str> {
self.job_arn.as_deref()
}
pub fn certificate_hashes(&self) -> &[::std::string::String] {
self.certificate_hashes.as_deref().unwrap_or_default()
}
}
impl GetRevocationStatusInput {
pub fn builder() -> crate::operation::get_revocation_status::builders::GetRevocationStatusInputBuilder {
crate::operation::get_revocation_status::builders::GetRevocationStatusInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetRevocationStatusInputBuilder {
pub(crate) signature_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) platform_id: ::std::option::Option<::std::string::String>,
pub(crate) profile_version_arn: ::std::option::Option<::std::string::String>,
pub(crate) job_arn: ::std::option::Option<::std::string::String>,
pub(crate) certificate_hashes: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl GetRevocationStatusInputBuilder {
pub fn signature_timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.signature_timestamp = ::std::option::Option::Some(input);
self
}
pub fn set_signature_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.signature_timestamp = input;
self
}
pub fn get_signature_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.signature_timestamp
}
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 profile_version_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.profile_version_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_profile_version_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.profile_version_arn = input;
self
}
pub fn get_profile_version_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.profile_version_arn
}
pub fn job_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.job_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_job_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.job_arn = input;
self
}
pub fn get_job_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.job_arn
}
pub fn certificate_hashes(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.certificate_hashes.unwrap_or_default();
v.push(input.into());
self.certificate_hashes = ::std::option::Option::Some(v);
self
}
pub fn set_certificate_hashes(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.certificate_hashes = input;
self
}
pub fn get_certificate_hashes(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.certificate_hashes
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::get_revocation_status::GetRevocationStatusInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::get_revocation_status::GetRevocationStatusInput {
signature_timestamp: self.signature_timestamp,
platform_id: self.platform_id,
profile_version_arn: self.profile_version_arn,
job_arn: self.job_arn,
certificate_hashes: self.certificate_hashes,
})
}
}