aws-sdk-codedeploy 1.99.0

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

/// <p>Represents the input of a <code>GetDeploymentGroup</code> operation.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetDeploymentGroupInput {
    /// <p>The name of an CodeDeploy application associated with the user or Amazon Web Services account.</p>
    pub application_name: ::std::option::Option<::std::string::String>,
    /// <p>The name of a deployment group for the specified application.</p>
    pub deployment_group_name: ::std::option::Option<::std::string::String>,
}
impl GetDeploymentGroupInput {
    /// <p>The name of an CodeDeploy application associated with the user or Amazon Web Services account.</p>
    pub fn application_name(&self) -> ::std::option::Option<&str> {
        self.application_name.as_deref()
    }
    /// <p>The name of a deployment group for the specified application.</p>
    pub fn deployment_group_name(&self) -> ::std::option::Option<&str> {
        self.deployment_group_name.as_deref()
    }
}
impl GetDeploymentGroupInput {
    /// Creates a new builder-style object to manufacture [`GetDeploymentGroupInput`](crate::operation::get_deployment_group::GetDeploymentGroupInput).
    pub fn builder() -> crate::operation::get_deployment_group::builders::GetDeploymentGroupInputBuilder {
        crate::operation::get_deployment_group::builders::GetDeploymentGroupInputBuilder::default()
    }
}

/// A builder for [`GetDeploymentGroupInput`](crate::operation::get_deployment_group::GetDeploymentGroupInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetDeploymentGroupInputBuilder {
    pub(crate) application_name: ::std::option::Option<::std::string::String>,
    pub(crate) deployment_group_name: ::std::option::Option<::std::string::String>,
}
impl GetDeploymentGroupInputBuilder {
    /// <p>The name of an CodeDeploy application associated with the user or Amazon Web Services account.</p>
    /// This field is required.
    pub fn application_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.application_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of an CodeDeploy application associated with the user or Amazon Web Services account.</p>
    pub fn set_application_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.application_name = input;
        self
    }
    /// <p>The name of an CodeDeploy application associated with the user or Amazon Web Services account.</p>
    pub fn get_application_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.application_name
    }
    /// <p>The name of a deployment group for the specified application.</p>
    /// This field is required.
    pub fn deployment_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.deployment_group_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of a deployment group for the specified application.</p>
    pub fn set_deployment_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.deployment_group_name = input;
        self
    }
    /// <p>The name of a deployment group for the specified application.</p>
    pub fn get_deployment_group_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.deployment_group_name
    }
    /// Consumes the builder and constructs a [`GetDeploymentGroupInput`](crate::operation::get_deployment_group::GetDeploymentGroupInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_deployment_group::GetDeploymentGroupInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::get_deployment_group::GetDeploymentGroupInput {
            application_name: self.application_name,
            deployment_group_name: self.deployment_group_name,
        })
    }
}