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
impl StructuralPartialEq for SettingBuilder
Auto Trait Implementations§
impl Freeze for SettingBuilder
impl RefUnwindSafe for SettingBuilder
impl Send for SettingBuilder
impl Sync for SettingBuilder
impl Unpin for SettingBuilder
impl UnwindSafe for SettingBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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