aws-sdk-continuum 1.1.0

AWS SDK for AWS Continuum
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// Specifies the issue to retrieve.
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetCodeIssueInput {
    /// The environment that owns the issue.
    pub environment_id: ::std::option::Option<::std::string::String>,
    /// The unique identifier of the issue to retrieve.
    pub issue_id: ::std::option::Option<::std::string::String>,
}
impl GetCodeIssueInput {
    /// The environment that owns the issue.
    pub fn environment_id(&self) -> ::std::option::Option<&str> {
        self.environment_id.as_deref()
    }
    /// The unique identifier of the issue to retrieve.
    pub fn issue_id(&self) -> ::std::option::Option<&str> {
        self.issue_id.as_deref()
    }
}
impl GetCodeIssueInput {
    /// Creates a new builder-style object to manufacture [`GetCodeIssueInput`](crate::operation::get_code_issue::GetCodeIssueInput).
    pub fn builder() -> crate::operation::get_code_issue::builders::GetCodeIssueInputBuilder {
        crate::operation::get_code_issue::builders::GetCodeIssueInputBuilder::default()
    }
}

/// A builder for [`GetCodeIssueInput`](crate::operation::get_code_issue::GetCodeIssueInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetCodeIssueInputBuilder {
    pub(crate) environment_id: ::std::option::Option<::std::string::String>,
    pub(crate) issue_id: ::std::option::Option<::std::string::String>,
}
impl GetCodeIssueInputBuilder {
    /// The environment that owns the issue.
    /// This field is required.
    pub fn environment_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.environment_id = ::std::option::Option::Some(input.into());
        self
    }
    /// The environment that owns the issue.
    pub fn set_environment_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.environment_id = input;
        self
    }
    /// The environment that owns the issue.
    pub fn get_environment_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.environment_id
    }
    /// The unique identifier of the issue to retrieve.
    /// This field is required.
    pub fn issue_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.issue_id = ::std::option::Option::Some(input.into());
        self
    }
    /// The unique identifier of the issue to retrieve.
    pub fn set_issue_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.issue_id = input;
        self
    }
    /// The unique identifier of the issue to retrieve.
    pub fn get_issue_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.issue_id
    }
    /// Consumes the builder and constructs a [`GetCodeIssueInput`](crate::operation::get_code_issue::GetCodeIssueInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_code_issue::GetCodeIssueInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_code_issue::GetCodeIssueInput {
            environment_id: self.environment_id,
            issue_id: self.issue_id,
        })
    }
}