#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetDeploymentStrategyOutput {
pub id: ::std::option::Option<::std::string::String>,
pub name: ::std::option::Option<::std::string::String>,
pub description: ::std::option::Option<::std::string::String>,
pub deployment_duration_in_minutes: i32,
pub growth_type: ::std::option::Option<crate::types::GrowthType>,
pub growth_factor: ::std::option::Option<f32>,
pub final_bake_time_in_minutes: i32,
pub replicate_to: ::std::option::Option<crate::types::ReplicateTo>,
_request_id: Option<String>,
}
impl GetDeploymentStrategyOutput {
pub fn id(&self) -> ::std::option::Option<&str> {
self.id.as_deref()
}
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
pub fn deployment_duration_in_minutes(&self) -> i32 {
self.deployment_duration_in_minutes
}
pub fn growth_type(&self) -> ::std::option::Option<&crate::types::GrowthType> {
self.growth_type.as_ref()
}
pub fn growth_factor(&self) -> ::std::option::Option<f32> {
self.growth_factor
}
pub fn final_bake_time_in_minutes(&self) -> i32 {
self.final_bake_time_in_minutes
}
pub fn replicate_to(&self) -> ::std::option::Option<&crate::types::ReplicateTo> {
self.replicate_to.as_ref()
}
}
impl ::aws_types::request_id::RequestId for GetDeploymentStrategyOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetDeploymentStrategyOutput {
pub fn builder() -> crate::operation::get_deployment_strategy::builders::GetDeploymentStrategyOutputBuilder {
crate::operation::get_deployment_strategy::builders::GetDeploymentStrategyOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetDeploymentStrategyOutputBuilder {
pub(crate) id: ::std::option::Option<::std::string::String>,
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) deployment_duration_in_minutes: ::std::option::Option<i32>,
pub(crate) growth_type: ::std::option::Option<crate::types::GrowthType>,
pub(crate) growth_factor: ::std::option::Option<f32>,
pub(crate) final_bake_time_in_minutes: ::std::option::Option<i32>,
pub(crate) replicate_to: ::std::option::Option<crate::types::ReplicateTo>,
_request_id: Option<String>,
}
impl GetDeploymentStrategyOutputBuilder {
pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.id = ::std::option::Option::Some(input.into());
self
}
pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.id = input;
self
}
pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
&self.id
}
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
pub fn deployment_duration_in_minutes(mut self, input: i32) -> Self {
self.deployment_duration_in_minutes = ::std::option::Option::Some(input);
self
}
pub fn set_deployment_duration_in_minutes(mut self, input: ::std::option::Option<i32>) -> Self {
self.deployment_duration_in_minutes = input;
self
}
pub fn get_deployment_duration_in_minutes(&self) -> &::std::option::Option<i32> {
&self.deployment_duration_in_minutes
}
pub fn growth_type(mut self, input: crate::types::GrowthType) -> Self {
self.growth_type = ::std::option::Option::Some(input);
self
}
pub fn set_growth_type(mut self, input: ::std::option::Option<crate::types::GrowthType>) -> Self {
self.growth_type = input;
self
}
pub fn get_growth_type(&self) -> &::std::option::Option<crate::types::GrowthType> {
&self.growth_type
}
pub fn growth_factor(mut self, input: f32) -> Self {
self.growth_factor = ::std::option::Option::Some(input);
self
}
pub fn set_growth_factor(mut self, input: ::std::option::Option<f32>) -> Self {
self.growth_factor = input;
self
}
pub fn get_growth_factor(&self) -> &::std::option::Option<f32> {
&self.growth_factor
}
pub fn final_bake_time_in_minutes(mut self, input: i32) -> Self {
self.final_bake_time_in_minutes = ::std::option::Option::Some(input);
self
}
pub fn set_final_bake_time_in_minutes(mut self, input: ::std::option::Option<i32>) -> Self {
self.final_bake_time_in_minutes = input;
self
}
pub fn get_final_bake_time_in_minutes(&self) -> &::std::option::Option<i32> {
&self.final_bake_time_in_minutes
}
pub fn replicate_to(mut self, input: crate::types::ReplicateTo) -> Self {
self.replicate_to = ::std::option::Option::Some(input);
self
}
pub fn set_replicate_to(mut self, input: ::std::option::Option<crate::types::ReplicateTo>) -> Self {
self.replicate_to = input;
self
}
pub fn get_replicate_to(&self) -> &::std::option::Option<crate::types::ReplicateTo> {
&self.replicate_to
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::get_deployment_strategy::GetDeploymentStrategyOutput {
crate::operation::get_deployment_strategy::GetDeploymentStrategyOutput {
id: self.id,
name: self.name,
description: self.description,
deployment_duration_in_minutes: self.deployment_duration_in_minutes.unwrap_or_default(),
growth_type: self.growth_type,
growth_factor: self.growth_factor,
final_bake_time_in_minutes: self.final_bake_time_in_minutes.unwrap_or_default(),
replicate_to: self.replicate_to,
_request_id: self._request_id,
}
}
}