#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeServiceDeploymentsInput {
pub service_deployment_arns: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl DescribeServiceDeploymentsInput {
pub fn service_deployment_arns(&self) -> &[::std::string::String] {
self.service_deployment_arns.as_deref().unwrap_or_default()
}
}
impl DescribeServiceDeploymentsInput {
pub fn builder() -> crate::operation::describe_service_deployments::builders::DescribeServiceDeploymentsInputBuilder {
crate::operation::describe_service_deployments::builders::DescribeServiceDeploymentsInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeServiceDeploymentsInputBuilder {
pub(crate) service_deployment_arns: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl DescribeServiceDeploymentsInputBuilder {
pub fn service_deployment_arns(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.service_deployment_arns.unwrap_or_default();
v.push(input.into());
self.service_deployment_arns = ::std::option::Option::Some(v);
self
}
pub fn set_service_deployment_arns(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.service_deployment_arns = input;
self
}
pub fn get_service_deployment_arns(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.service_deployment_arns
}
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::describe_service_deployments::DescribeServiceDeploymentsInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::describe_service_deployments::DescribeServiceDeploymentsInput {
service_deployment_arns: self.service_deployment_arns,
})
}
}