aws-sdk-assurance 1.0.0

AWS SDK for AWS Assurance
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetEvidenceInput {
    /// <p>The ARN of this governance environment.</p>
    pub environment_arn: ::std::option::Option<::std::string::String>,
    /// <p>The unique identifier of the evidence item.</p>
    pub evidence_id: ::std::option::Option<::std::string::String>,
    /// <p>Specifies the version. Omit to get the latest version.</p>
    pub evidence_version: ::std::option::Option<i32>,
    /// <p>The name of the project.</p>
    pub project: ::std::option::Option<::std::string::String>,
}
impl GetEvidenceInput {
    /// <p>The ARN of this governance environment.</p>
    pub fn environment_arn(&self) -> ::std::option::Option<&str> {
        self.environment_arn.as_deref()
    }
    /// <p>The unique identifier of the evidence item.</p>
    pub fn evidence_id(&self) -> ::std::option::Option<&str> {
        self.evidence_id.as_deref()
    }
    /// <p>Specifies the version. Omit to get the latest version.</p>
    pub fn evidence_version(&self) -> ::std::option::Option<i32> {
        self.evidence_version
    }
    /// <p>The name of the project.</p>
    pub fn project(&self) -> ::std::option::Option<&str> {
        self.project.as_deref()
    }
}
impl GetEvidenceInput {
    /// Creates a new builder-style object to manufacture [`GetEvidenceInput`](crate::operation::get_evidence::GetEvidenceInput).
    pub fn builder() -> crate::operation::get_evidence::builders::GetEvidenceInputBuilder {
        crate::operation::get_evidence::builders::GetEvidenceInputBuilder::default()
    }
}

/// A builder for [`GetEvidenceInput`](crate::operation::get_evidence::GetEvidenceInput).
#[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 {
    /// <p>The ARN of this governance environment.</p>
    /// This field is required.
    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
    }
    /// <p>The ARN of this governance environment.</p>
    pub fn set_environment_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.environment_arn = input;
        self
    }
    /// <p>The ARN of this governance environment.</p>
    pub fn get_environment_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.environment_arn
    }
    /// <p>The unique identifier of the evidence item.</p>
    /// This field is required.
    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
    }
    /// <p>The unique identifier of the evidence item.</p>
    pub fn set_evidence_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.evidence_id = input;
        self
    }
    /// <p>The unique identifier of the evidence item.</p>
    pub fn get_evidence_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.evidence_id
    }
    /// <p>Specifies the version. Omit to get the latest version.</p>
    pub fn evidence_version(mut self, input: i32) -> Self {
        self.evidence_version = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies the version. Omit to get the latest version.</p>
    pub fn set_evidence_version(mut self, input: ::std::option::Option<i32>) -> Self {
        self.evidence_version = input;
        self
    }
    /// <p>Specifies the version. Omit to get the latest version.</p>
    pub fn get_evidence_version(&self) -> &::std::option::Option<i32> {
        &self.evidence_version
    }
    /// <p>The name of the project.</p>
    /// This field is required.
    pub fn project(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.project = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the project.</p>
    pub fn set_project(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.project = input;
        self
    }
    /// <p>The name of the project.</p>
    pub fn get_project(&self) -> &::std::option::Option<::std::string::String> {
        &self.project
    }
    /// Consumes the builder and constructs a [`GetEvidenceInput`](crate::operation::get_evidence::GetEvidenceInput).
    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,
        })
    }
}