Struct aws_sdk_computeoptimizer::operation::update_enrollment_status::builders::UpdateEnrollmentStatusInputBuilder
source · #[non_exhaustive]pub struct UpdateEnrollmentStatusInputBuilder { /* private fields */ }
Expand description
A builder for UpdateEnrollmentStatusInput
.
Implementations§
source§impl UpdateEnrollmentStatusInputBuilder
impl UpdateEnrollmentStatusInputBuilder
sourcepub fn status(self, input: Status) -> Self
pub fn status(self, input: Status) -> Self
The new enrollment status of the account.
The following status options are available:
-
Active
- Opts in your account to the Compute Optimizer service. Compute Optimizer begins analyzing the configuration and utilization metrics of your Amazon Web Services resources after you opt in. For more information, see Metrics analyzed by Compute Optimizer in the Compute Optimizer User Guide. -
Inactive
- Opts out your account from the Compute Optimizer service. Your account's recommendations and related metrics data will be deleted from Compute Optimizer after you opt out.
The Pending
and Failed
options cannot be used to update the enrollment status of an account. They are returned in the response of a request to update the enrollment status of an account.
sourcepub fn set_status(self, input: Option<Status>) -> Self
pub fn set_status(self, input: Option<Status>) -> Self
The new enrollment status of the account.
The following status options are available:
-
Active
- Opts in your account to the Compute Optimizer service. Compute Optimizer begins analyzing the configuration and utilization metrics of your Amazon Web Services resources after you opt in. For more information, see Metrics analyzed by Compute Optimizer in the Compute Optimizer User Guide. -
Inactive
- Opts out your account from the Compute Optimizer service. Your account's recommendations and related metrics data will be deleted from Compute Optimizer after you opt out.
The Pending
and Failed
options cannot be used to update the enrollment status of an account. They are returned in the response of a request to update the enrollment status of an account.
sourcepub fn get_status(&self) -> &Option<Status>
pub fn get_status(&self) -> &Option<Status>
The new enrollment status of the account.
The following status options are available:
-
Active
- Opts in your account to the Compute Optimizer service. Compute Optimizer begins analyzing the configuration and utilization metrics of your Amazon Web Services resources after you opt in. For more information, see Metrics analyzed by Compute Optimizer in the Compute Optimizer User Guide. -
Inactive
- Opts out your account from the Compute Optimizer service. Your account's recommendations and related metrics data will be deleted from Compute Optimizer after you opt out.
The Pending
and Failed
options cannot be used to update the enrollment status of an account. They are returned in the response of a request to update the enrollment status of an account.
sourcepub fn include_member_accounts(self, input: bool) -> Self
pub fn include_member_accounts(self, input: bool) -> Self
Indicates whether to enroll member accounts of the organization if the account is the management account of an organization.
sourcepub fn set_include_member_accounts(self, input: Option<bool>) -> Self
pub fn set_include_member_accounts(self, input: Option<bool>) -> Self
Indicates whether to enroll member accounts of the organization if the account is the management account of an organization.
sourcepub fn get_include_member_accounts(&self) -> &Option<bool>
pub fn get_include_member_accounts(&self) -> &Option<bool>
Indicates whether to enroll member accounts of the organization if the account is the management account of an organization.
sourcepub fn build(self) -> Result<UpdateEnrollmentStatusInput, BuildError>
pub fn build(self) -> Result<UpdateEnrollmentStatusInput, BuildError>
Consumes the builder and constructs a UpdateEnrollmentStatusInput
.
source§impl UpdateEnrollmentStatusInputBuilder
impl UpdateEnrollmentStatusInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdateEnrollmentStatusOutput, SdkError<UpdateEnrollmentStatusError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdateEnrollmentStatusOutput, SdkError<UpdateEnrollmentStatusError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateEnrollmentStatusInputBuilder
impl Clone for UpdateEnrollmentStatusInputBuilder
source§fn clone(&self) -> UpdateEnrollmentStatusInputBuilder
fn clone(&self) -> UpdateEnrollmentStatusInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for UpdateEnrollmentStatusInputBuilder
impl Default for UpdateEnrollmentStatusInputBuilder
source§fn default() -> UpdateEnrollmentStatusInputBuilder
fn default() -> UpdateEnrollmentStatusInputBuilder
source§impl PartialEq for UpdateEnrollmentStatusInputBuilder
impl PartialEq for UpdateEnrollmentStatusInputBuilder
source§fn eq(&self, other: &UpdateEnrollmentStatusInputBuilder) -> bool
fn eq(&self, other: &UpdateEnrollmentStatusInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateEnrollmentStatusInputBuilder
Auto Trait Implementations§
impl Freeze for UpdateEnrollmentStatusInputBuilder
impl RefUnwindSafe for UpdateEnrollmentStatusInputBuilder
impl Send for UpdateEnrollmentStatusInputBuilder
impl Sync for UpdateEnrollmentStatusInputBuilder
impl Unpin for UpdateEnrollmentStatusInputBuilder
impl UnwindSafe for UpdateEnrollmentStatusInputBuilder
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