Struct aws_sdk_ecs::types::builders::ClusterSettingBuilder
source · #[non_exhaustive]pub struct ClusterSettingBuilder { /* private fields */ }
Expand description
A builder for ClusterSetting
.
Implementations§
source§impl ClusterSettingBuilder
impl ClusterSettingBuilder
sourcepub fn name(self, input: ClusterSettingName) -> Self
pub fn name(self, input: ClusterSettingName) -> Self
The name of the cluster setting. The value is containerInsights
.
sourcepub fn set_name(self, input: Option<ClusterSettingName>) -> Self
pub fn set_name(self, input: Option<ClusterSettingName>) -> Self
The name of the cluster setting. The value is containerInsights
.
sourcepub fn get_name(&self) -> &Option<ClusterSettingName>
pub fn get_name(&self) -> &Option<ClusterSettingName>
The name of the cluster setting. The value is containerInsights
.
sourcepub fn value(self, input: impl Into<String>) -> Self
pub fn value(self, input: impl Into<String>) -> Self
The value to set for the cluster setting. The supported values are enabled
and disabled
.
If you set name
to containerInsights
and value
to enabled
, CloudWatch Container Insights will be on for the cluster, otherwise it will be off unless the containerInsights
account setting is turned on. If a cluster value is specified, it will override the containerInsights
value set with PutAccountSetting or PutAccountSettingDefault.
sourcepub fn set_value(self, input: Option<String>) -> Self
pub fn set_value(self, input: Option<String>) -> Self
The value to set for the cluster setting. The supported values are enabled
and disabled
.
If you set name
to containerInsights
and value
to enabled
, CloudWatch Container Insights will be on for the cluster, otherwise it will be off unless the containerInsights
account setting is turned on. If a cluster value is specified, it will override the containerInsights
value set with PutAccountSetting or PutAccountSettingDefault.
sourcepub fn get_value(&self) -> &Option<String>
pub fn get_value(&self) -> &Option<String>
The value to set for the cluster setting. The supported values are enabled
and disabled
.
If you set name
to containerInsights
and value
to enabled
, CloudWatch Container Insights will be on for the cluster, otherwise it will be off unless the containerInsights
account setting is turned on. If a cluster value is specified, it will override the containerInsights
value set with PutAccountSetting or PutAccountSettingDefault.
sourcepub fn build(self) -> ClusterSetting
pub fn build(self) -> ClusterSetting
Consumes the builder and constructs a ClusterSetting
.
Trait Implementations§
source§impl Clone for ClusterSettingBuilder
impl Clone for ClusterSettingBuilder
source§fn clone(&self) -> ClusterSettingBuilder
fn clone(&self) -> ClusterSettingBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ClusterSettingBuilder
impl Debug for ClusterSettingBuilder
source§impl Default for ClusterSettingBuilder
impl Default for ClusterSettingBuilder
source§fn default() -> ClusterSettingBuilder
fn default() -> ClusterSettingBuilder
source§impl PartialEq for ClusterSettingBuilder
impl PartialEq for ClusterSettingBuilder
source§fn eq(&self, other: &ClusterSettingBuilder) -> bool
fn eq(&self, other: &ClusterSettingBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ClusterSettingBuilder
Auto Trait Implementations§
impl Freeze for ClusterSettingBuilder
impl RefUnwindSafe for ClusterSettingBuilder
impl Send for ClusterSettingBuilder
impl Sync for ClusterSettingBuilder
impl Unpin for ClusterSettingBuilder
impl UnwindSafe for ClusterSettingBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more