/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.computeoptimizer.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UpdateEnrollmentStatusRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* 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.
*
* Indicates whether to enroll member accounts of the organization if the account is the management account of an * organization. *
*/ private Boolean includeMemberAccounts; /** ** 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* Indicates whether to enroll member accounts of the organization if the account is the management account of an * organization. *
* * @param includeMemberAccounts * Indicates whether to enroll member accounts of the organization if the account is the management account * of an organization. */ public void setIncludeMemberAccounts(Boolean includeMemberAccounts) { this.includeMemberAccounts = includeMemberAccounts; } /** ** Indicates whether to enroll member accounts of the organization if the account is the management account of an * organization. *
* * @return Indicates whether to enroll member accounts of the organization if the account is the management account * of an organization. */ public Boolean getIncludeMemberAccounts() { return this.includeMemberAccounts; } /** ** Indicates whether to enroll member accounts of the organization if the account is the management account of an * organization. *
* * @param includeMemberAccounts * Indicates whether to enroll member accounts of the organization if the account is the management account * of an organization. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEnrollmentStatusRequest withIncludeMemberAccounts(Boolean includeMemberAccounts) { setIncludeMemberAccounts(includeMemberAccounts); return this; } /** ** Indicates whether to enroll member accounts of the organization if the account is the management account of an * organization. *
* * @return Indicates whether to enroll member accounts of the organization if the account is the management account * of an organization. */ public Boolean isIncludeMemberAccounts() { return this.includeMemberAccounts; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getIncludeMemberAccounts() != null) sb.append("IncludeMemberAccounts: ").append(getIncludeMemberAccounts()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateEnrollmentStatusRequest == false) return false; UpdateEnrollmentStatusRequest other = (UpdateEnrollmentStatusRequest) obj; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getIncludeMemberAccounts() == null ^ this.getIncludeMemberAccounts() == null) return false; if (other.getIncludeMemberAccounts() != null && other.getIncludeMemberAccounts().equals(this.getIncludeMemberAccounts()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getIncludeMemberAccounts() == null) ? 0 : getIncludeMemberAccounts().hashCode()); return hashCode; } @Override public UpdateEnrollmentStatusRequest clone() { return (UpdateEnrollmentStatusRequest) super.clone(); } }