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.

/// <p>Input for <code>GetEvidenceContent</code>.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetEvidenceContentInput {
    /// <p>The Amazon Resource Name (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>The version of the evidence to get. To get the latest version, omit this parameter.</p>
    pub evidence_version: ::std::option::Option<i32>,
    /// <p>The name of the project.</p>
    pub project: ::std::option::Option<::std::string::String>,
}
impl GetEvidenceContentInput {
    /// <p>The Amazon Resource Name (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>The version of the evidence to get. To get the latest version, omit this parameter.</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 GetEvidenceContentInput {
    /// Creates a new builder-style object to manufacture [`GetEvidenceContentInput`](crate::operation::get_evidence_content::GetEvidenceContentInput).
    pub fn builder() -> crate::operation::get_evidence_content::builders::GetEvidenceContentInputBuilder {
        crate::operation::get_evidence_content::builders::GetEvidenceContentInputBuilder::default()
    }
}

/// A builder for [`GetEvidenceContentInput`](crate::operation::get_evidence_content::GetEvidenceContentInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetEvidenceContentInputBuilder {
    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 GetEvidenceContentInputBuilder {
    /// <p>The Amazon Resource Name (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 Amazon Resource Name (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 Amazon Resource Name (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>The version of the evidence to get. To get the latest version, omit this parameter.</p>
    pub fn evidence_version(mut self, input: i32) -> Self {
        self.evidence_version = ::std::option::Option::Some(input);
        self
    }
    /// <p>The version of the evidence to get. To get the latest version, omit this parameter.</p>
    pub fn set_evidence_version(mut self, input: ::std::option::Option<i32>) -> Self {
        self.evidence_version = input;
        self
    }
    /// <p>The version of the evidence to get. To get the latest version, omit this parameter.</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 [`GetEvidenceContentInput`](crate::operation::get_evidence_content::GetEvidenceContentInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_evidence_content::GetEvidenceContentInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::get_evidence_content::GetEvidenceContentInput {
            environment_arn: self.environment_arn,
            evidence_id: self.evidence_id,
            evidence_version: self.evidence_version,
            project: self.project,
        })
    }
}