Struct aws_sdk_ecs::types::builders::SettingBuilder
source · #[non_exhaustive]pub struct SettingBuilder { /* private fields */ }
Expand description
A builder for Setting
.
Implementations§
source§impl SettingBuilder
impl SettingBuilder
sourcepub fn name(self, input: SettingName) -> Self
pub fn name(self, input: SettingName) -> Self
The Amazon ECS resource name.
sourcepub fn set_name(self, input: Option<SettingName>) -> Self
pub fn set_name(self, input: Option<SettingName>) -> Self
The Amazon ECS resource name.
sourcepub fn get_name(&self) -> &Option<SettingName>
pub fn get_name(&self) -> &Option<SettingName>
The Amazon ECS resource name.
sourcepub fn value(self, input: impl Into<String>) -> Self
pub fn value(self, input: impl Into<String>) -> Self
Determines whether the account setting is on or off for the specified resource.
sourcepub fn set_value(self, input: Option<String>) -> Self
pub fn set_value(self, input: Option<String>) -> Self
Determines whether the account setting is on or off for the specified resource.
sourcepub fn get_value(&self) -> &Option<String>
pub fn get_value(&self) -> &Option<String>
Determines whether the account setting is on or off for the specified resource.
sourcepub fn principal_arn(self, input: impl Into<String>) -> Self
pub fn principal_arn(self, input: impl Into<String>) -> Self
The ARN of the principal. It can be a user, role, or the root user. If this field is omitted, the authenticated user is assumed.
sourcepub fn set_principal_arn(self, input: Option<String>) -> Self
pub fn set_principal_arn(self, input: Option<String>) -> Self
The ARN of the principal. It can be a user, role, or the root user. If this field is omitted, the authenticated user is assumed.
sourcepub fn get_principal_arn(&self) -> &Option<String>
pub fn get_principal_arn(&self) -> &Option<String>
The ARN of the principal. It can be a user, role, or the root user. If this field is omitted, the authenticated user is assumed.
sourcepub fn type(self, input: SettingType) -> Self
pub fn type(self, input: SettingType) -> Self
Indicates whether Amazon Web Services manages the account setting, or if the user manages it.
aws_managed
account settings are read-only, as Amazon Web Services manages such on the customer's behalf. Currently, the guardDutyActivate
account setting is the only one Amazon Web Services manages.
sourcepub fn set_type(self, input: Option<SettingType>) -> Self
pub fn set_type(self, input: Option<SettingType>) -> Self
Indicates whether Amazon Web Services manages the account setting, or if the user manages it.
aws_managed
account settings are read-only, as Amazon Web Services manages such on the customer's behalf. Currently, the guardDutyActivate
account setting is the only one Amazon Web Services manages.
sourcepub fn get_type(&self) -> &Option<SettingType>
pub fn get_type(&self) -> &Option<SettingType>
Indicates whether Amazon Web Services manages the account setting, or if the user manages it.
aws_managed
account settings are read-only, as Amazon Web Services manages such on the customer's behalf. Currently, the guardDutyActivate
account setting is the only one Amazon Web Services manages.
Trait Implementations§
source§impl Clone for SettingBuilder
impl Clone for SettingBuilder
source§fn clone(&self) -> SettingBuilder
fn clone(&self) -> SettingBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SettingBuilder
impl Debug for SettingBuilder
source§impl Default for SettingBuilder
impl Default for SettingBuilder
source§fn default() -> SettingBuilder
fn default() -> SettingBuilder
source§impl PartialEq for SettingBuilder
impl PartialEq for SettingBuilder
source§fn eq(&self, other: &SettingBuilder) -> bool
fn eq(&self, other: &SettingBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.