#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct StartDeploymentInput {
#[doc(hidden)]
pub service_arn: std::option::Option<std::string::String>,
}
impl StartDeploymentInput {
pub fn service_arn(&self) -> std::option::Option<&str> {
self.service_arn.as_deref()
}
}
impl StartDeploymentInput {
pub fn builder() -> crate::operation::start_deployment::builders::StartDeploymentInputBuilder {
crate::operation::start_deployment::builders::StartDeploymentInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct StartDeploymentInputBuilder {
pub(crate) service_arn: std::option::Option<std::string::String>,
}
impl StartDeploymentInputBuilder {
pub fn service_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.service_arn = Some(input.into());
self
}
pub fn set_service_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.service_arn = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::start_deployment::StartDeploymentInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::start_deployment::StartDeploymentInput {
service_arn: self.service_arn,
})
}
}