#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetEvidenceInput {
pub environment_arn: ::std::option::Option<::std::string::String>,
pub evidence_id: ::std::option::Option<::std::string::String>,
pub evidence_version: ::std::option::Option<i32>,
pub project: ::std::option::Option<::std::string::String>,
}
impl GetEvidenceInput {
pub fn environment_arn(&self) -> ::std::option::Option<&str> {
self.environment_arn.as_deref()
}
pub fn evidence_id(&self) -> ::std::option::Option<&str> {
self.evidence_id.as_deref()
}
pub fn evidence_version(&self) -> ::std::option::Option<i32> {
self.evidence_version
}
pub fn project(&self) -> ::std::option::Option<&str> {
self.project.as_deref()
}
}
impl GetEvidenceInput {
pub fn builder() -> crate::operation::get_evidence::builders::GetEvidenceInputBuilder {
crate::operation::get_evidence::builders::GetEvidenceInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetEvidenceInputBuilder {
pub(crate) environment_arn: ::std::option::Option<::std::string::String>,
pub(crate) evidence_id: ::std::option::Option<::std::string::String>,
pub(crate) evidence_version: ::std::option::Option<i32>,
pub(crate) project: ::std::option::Option<::std::string::String>,
}
impl GetEvidenceInputBuilder {
pub fn environment_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.environment_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_environment_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.environment_arn = input;
self
}
pub fn get_environment_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.environment_arn
}
pub fn evidence_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.evidence_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_evidence_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.evidence_id = input;
self
}
pub fn get_evidence_id(&self) -> &::std::option::Option<::std::string::String> {
&self.evidence_id
}
pub fn evidence_version(mut self, input: i32) -> Self {
self.evidence_version = ::std::option::Option::Some(input);
self
}
pub fn set_evidence_version(mut self, input: ::std::option::Option<i32>) -> Self {
self.evidence_version = input;
self
}
pub fn get_evidence_version(&self) -> &::std::option::Option<i32> {
&self.evidence_version
}
pub fn project(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.project = ::std::option::Option::Some(input.into());
self
}
pub fn set_project(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.project = input;
self
}
pub fn get_project(&self) -> &::std::option::Option<::std::string::String> {
&self.project
}
pub fn build(self) -> ::std::result::Result<crate::operation::get_evidence::GetEvidenceInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_evidence::GetEvidenceInput {
environment_arn: self.environment_arn,
evidence_id: self.evidence_id,
evidence_version: self.evidence_version,
project: self.project,
})
}
}