/* * 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.config.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Returns the status for an organization Config rule in an organization. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class OrganizationConfigRuleStatus implements Serializable, Cloneable, StructuredPojo { /** ** The name that you assign to organization Config rule. *
*/ private String organizationConfigRuleName; /** *
* Indicates deployment status of an organization Config rule. When management account calls
* PutOrganizationConfigRule action for the first time, Config rule status is created in all the member accounts.
* When management account calls PutOrganizationConfigRule action for the second time, Config rule status is updated
* in all the member accounts. Additionally, Config rule status is updated when one or more member accounts join or
* leave an organization. Config rule status is deleted when the management account deletes OrganizationConfigRule
* in all the member accounts and disables service access for config-multiaccountsetup.amazonaws.com
.
*
* Config sets the state of the rule to: *
*
* CREATE_SUCCESSFUL
when an organization Config rule has been successfully created in all the member
* accounts.
*
* CREATE_IN_PROGRESS
when an organization Config rule creation is in progress.
*
* CREATE_FAILED
when an organization Config rule creation failed in one or more member accounts within
* that organization.
*
* DELETE_FAILED
when an organization Config rule deletion failed in one or more member accounts within
* that organization.
*
* DELETE_IN_PROGRESS
when an organization Config rule deletion is in progress.
*
* DELETE_SUCCESSFUL
when an organization Config rule has been successfully deleted from all the member
* accounts.
*
* UPDATE_SUCCESSFUL
when an organization Config rule has been successfully updated in all the member
* accounts.
*
* UPDATE_IN_PROGRESS
when an organization Config rule update is in progress.
*
* UPDATE_FAILED
when an organization Config rule update failed in one or more member accounts within
* that organization.
*
* An error code that is returned when organization Config rule creation or deletion has failed. *
*/ private String errorCode; /** ** An error message indicating that organization Config rule creation or deletion failed due to an error. *
*/ private String errorMessage; /** ** The timestamp of the last update. *
*/ private java.util.Date lastUpdateTime; /** ** The name that you assign to organization Config rule. *
* * @param organizationConfigRuleName * The name that you assign to organization Config rule. */ public void setOrganizationConfigRuleName(String organizationConfigRuleName) { this.organizationConfigRuleName = organizationConfigRuleName; } /** ** The name that you assign to organization Config rule. *
* * @return The name that you assign to organization Config rule. */ public String getOrganizationConfigRuleName() { return this.organizationConfigRuleName; } /** ** The name that you assign to organization Config rule. *
* * @param organizationConfigRuleName * The name that you assign to organization Config rule. * @return Returns a reference to this object so that method calls can be chained together. */ public OrganizationConfigRuleStatus withOrganizationConfigRuleName(String organizationConfigRuleName) { setOrganizationConfigRuleName(organizationConfigRuleName); return this; } /** *
* Indicates deployment status of an organization Config rule. When management account calls
* PutOrganizationConfigRule action for the first time, Config rule status is created in all the member accounts.
* When management account calls PutOrganizationConfigRule action for the second time, Config rule status is updated
* in all the member accounts. Additionally, Config rule status is updated when one or more member accounts join or
* leave an organization. Config rule status is deleted when the management account deletes OrganizationConfigRule
* in all the member accounts and disables service access for config-multiaccountsetup.amazonaws.com
.
*
* Config sets the state of the rule to: *
*
* CREATE_SUCCESSFUL
when an organization Config rule has been successfully created in all the member
* accounts.
*
* CREATE_IN_PROGRESS
when an organization Config rule creation is in progress.
*
* CREATE_FAILED
when an organization Config rule creation failed in one or more member accounts within
* that organization.
*
* DELETE_FAILED
when an organization Config rule deletion failed in one or more member accounts within
* that organization.
*
* DELETE_IN_PROGRESS
when an organization Config rule deletion is in progress.
*
* DELETE_SUCCESSFUL
when an organization Config rule has been successfully deleted from all the member
* accounts.
*
* UPDATE_SUCCESSFUL
when an organization Config rule has been successfully updated in all the member
* accounts.
*
* UPDATE_IN_PROGRESS
when an organization Config rule update is in progress.
*
* UPDATE_FAILED
when an organization Config rule update failed in one or more member accounts within
* that organization.
*
config-multiaccountsetup.amazonaws.com
.
* * Config sets the state of the rule to: *
*
* CREATE_SUCCESSFUL
when an organization Config rule has been successfully created in all the
* member accounts.
*
* CREATE_IN_PROGRESS
when an organization Config rule creation is in progress.
*
* CREATE_FAILED
when an organization Config rule creation failed in one or more member accounts
* within that organization.
*
* DELETE_FAILED
when an organization Config rule deletion failed in one or more member accounts
* within that organization.
*
* DELETE_IN_PROGRESS
when an organization Config rule deletion is in progress.
*
* DELETE_SUCCESSFUL
when an organization Config rule has been successfully deleted from all the
* member accounts.
*
* UPDATE_SUCCESSFUL
when an organization Config rule has been successfully updated in all the
* member accounts.
*
* UPDATE_IN_PROGRESS
when an organization Config rule update is in progress.
*
* UPDATE_FAILED
when an organization Config rule update failed in one or more member accounts
* within that organization.
*
* Indicates deployment status of an organization Config rule. When management account calls
* PutOrganizationConfigRule action for the first time, Config rule status is created in all the member accounts.
* When management account calls PutOrganizationConfigRule action for the second time, Config rule status is updated
* in all the member accounts. Additionally, Config rule status is updated when one or more member accounts join or
* leave an organization. Config rule status is deleted when the management account deletes OrganizationConfigRule
* in all the member accounts and disables service access for config-multiaccountsetup.amazonaws.com
.
*
* Config sets the state of the rule to: *
*
* CREATE_SUCCESSFUL
when an organization Config rule has been successfully created in all the member
* accounts.
*
* CREATE_IN_PROGRESS
when an organization Config rule creation is in progress.
*
* CREATE_FAILED
when an organization Config rule creation failed in one or more member accounts within
* that organization.
*
* DELETE_FAILED
when an organization Config rule deletion failed in one or more member accounts within
* that organization.
*
* DELETE_IN_PROGRESS
when an organization Config rule deletion is in progress.
*
* DELETE_SUCCESSFUL
when an organization Config rule has been successfully deleted from all the member
* accounts.
*
* UPDATE_SUCCESSFUL
when an organization Config rule has been successfully updated in all the member
* accounts.
*
* UPDATE_IN_PROGRESS
when an organization Config rule update is in progress.
*
* UPDATE_FAILED
when an organization Config rule update failed in one or more member accounts within
* that organization.
*
config-multiaccountsetup.amazonaws.com
.
* * Config sets the state of the rule to: *
*
* CREATE_SUCCESSFUL
when an organization Config rule has been successfully created in all the
* member accounts.
*
* CREATE_IN_PROGRESS
when an organization Config rule creation is in progress.
*
* CREATE_FAILED
when an organization Config rule creation failed in one or more member
* accounts within that organization.
*
* DELETE_FAILED
when an organization Config rule deletion failed in one or more member
* accounts within that organization.
*
* DELETE_IN_PROGRESS
when an organization Config rule deletion is in progress.
*
* DELETE_SUCCESSFUL
when an organization Config rule has been successfully deleted from all
* the member accounts.
*
* UPDATE_SUCCESSFUL
when an organization Config rule has been successfully updated in all the
* member accounts.
*
* UPDATE_IN_PROGRESS
when an organization Config rule update is in progress.
*
* UPDATE_FAILED
when an organization Config rule update failed in one or more member accounts
* within that organization.
*
* Indicates deployment status of an organization Config rule. When management account calls
* PutOrganizationConfigRule action for the first time, Config rule status is created in all the member accounts.
* When management account calls PutOrganizationConfigRule action for the second time, Config rule status is updated
* in all the member accounts. Additionally, Config rule status is updated when one or more member accounts join or
* leave an organization. Config rule status is deleted when the management account deletes OrganizationConfigRule
* in all the member accounts and disables service access for config-multiaccountsetup.amazonaws.com
.
*
* Config sets the state of the rule to: *
*
* CREATE_SUCCESSFUL
when an organization Config rule has been successfully created in all the member
* accounts.
*
* CREATE_IN_PROGRESS
when an organization Config rule creation is in progress.
*
* CREATE_FAILED
when an organization Config rule creation failed in one or more member accounts within
* that organization.
*
* DELETE_FAILED
when an organization Config rule deletion failed in one or more member accounts within
* that organization.
*
* DELETE_IN_PROGRESS
when an organization Config rule deletion is in progress.
*
* DELETE_SUCCESSFUL
when an organization Config rule has been successfully deleted from all the member
* accounts.
*
* UPDATE_SUCCESSFUL
when an organization Config rule has been successfully updated in all the member
* accounts.
*
* UPDATE_IN_PROGRESS
when an organization Config rule update is in progress.
*
* UPDATE_FAILED
when an organization Config rule update failed in one or more member accounts within
* that organization.
*
config-multiaccountsetup.amazonaws.com
.
* * Config sets the state of the rule to: *
*
* CREATE_SUCCESSFUL
when an organization Config rule has been successfully created in all the
* member accounts.
*
* CREATE_IN_PROGRESS
when an organization Config rule creation is in progress.
*
* CREATE_FAILED
when an organization Config rule creation failed in one or more member accounts
* within that organization.
*
* DELETE_FAILED
when an organization Config rule deletion failed in one or more member accounts
* within that organization.
*
* DELETE_IN_PROGRESS
when an organization Config rule deletion is in progress.
*
* DELETE_SUCCESSFUL
when an organization Config rule has been successfully deleted from all the
* member accounts.
*
* UPDATE_SUCCESSFUL
when an organization Config rule has been successfully updated in all the
* member accounts.
*
* UPDATE_IN_PROGRESS
when an organization Config rule update is in progress.
*
* UPDATE_FAILED
when an organization Config rule update failed in one or more member accounts
* within that organization.
*
* Indicates deployment status of an organization Config rule. When management account calls
* PutOrganizationConfigRule action for the first time, Config rule status is created in all the member accounts.
* When management account calls PutOrganizationConfigRule action for the second time, Config rule status is updated
* in all the member accounts. Additionally, Config rule status is updated when one or more member accounts join or
* leave an organization. Config rule status is deleted when the management account deletes OrganizationConfigRule
* in all the member accounts and disables service access for config-multiaccountsetup.amazonaws.com
.
*
* Config sets the state of the rule to: *
*
* CREATE_SUCCESSFUL
when an organization Config rule has been successfully created in all the member
* accounts.
*
* CREATE_IN_PROGRESS
when an organization Config rule creation is in progress.
*
* CREATE_FAILED
when an organization Config rule creation failed in one or more member accounts within
* that organization.
*
* DELETE_FAILED
when an organization Config rule deletion failed in one or more member accounts within
* that organization.
*
* DELETE_IN_PROGRESS
when an organization Config rule deletion is in progress.
*
* DELETE_SUCCESSFUL
when an organization Config rule has been successfully deleted from all the member
* accounts.
*
* UPDATE_SUCCESSFUL
when an organization Config rule has been successfully updated in all the member
* accounts.
*
* UPDATE_IN_PROGRESS
when an organization Config rule update is in progress.
*
* UPDATE_FAILED
when an organization Config rule update failed in one or more member accounts within
* that organization.
*
config-multiaccountsetup.amazonaws.com
.
* * Config sets the state of the rule to: *
*
* CREATE_SUCCESSFUL
when an organization Config rule has been successfully created in all the
* member accounts.
*
* CREATE_IN_PROGRESS
when an organization Config rule creation is in progress.
*
* CREATE_FAILED
when an organization Config rule creation failed in one or more member accounts
* within that organization.
*
* DELETE_FAILED
when an organization Config rule deletion failed in one or more member accounts
* within that organization.
*
* DELETE_IN_PROGRESS
when an organization Config rule deletion is in progress.
*
* DELETE_SUCCESSFUL
when an organization Config rule has been successfully deleted from all the
* member accounts.
*
* UPDATE_SUCCESSFUL
when an organization Config rule has been successfully updated in all the
* member accounts.
*
* UPDATE_IN_PROGRESS
when an organization Config rule update is in progress.
*
* UPDATE_FAILED
when an organization Config rule update failed in one or more member accounts
* within that organization.
*
* An error code that is returned when organization Config rule creation or deletion has failed. *
* * @param errorCode * An error code that is returned when organization Config rule creation or deletion has failed. */ public void setErrorCode(String errorCode) { this.errorCode = errorCode; } /** ** An error code that is returned when organization Config rule creation or deletion has failed. *
* * @return An error code that is returned when organization Config rule creation or deletion has failed. */ public String getErrorCode() { return this.errorCode; } /** ** An error code that is returned when organization Config rule creation or deletion has failed. *
* * @param errorCode * An error code that is returned when organization Config rule creation or deletion has failed. * @return Returns a reference to this object so that method calls can be chained together. */ public OrganizationConfigRuleStatus withErrorCode(String errorCode) { setErrorCode(errorCode); return this; } /** ** An error message indicating that organization Config rule creation or deletion failed due to an error. *
* * @param errorMessage * An error message indicating that organization Config rule creation or deletion failed due to an error. */ public void setErrorMessage(String errorMessage) { this.errorMessage = errorMessage; } /** ** An error message indicating that organization Config rule creation or deletion failed due to an error. *
* * @return An error message indicating that organization Config rule creation or deletion failed due to an error. */ public String getErrorMessage() { return this.errorMessage; } /** ** An error message indicating that organization Config rule creation or deletion failed due to an error. *
* * @param errorMessage * An error message indicating that organization Config rule creation or deletion failed due to an error. * @return Returns a reference to this object so that method calls can be chained together. */ public OrganizationConfigRuleStatus withErrorMessage(String errorMessage) { setErrorMessage(errorMessage); return this; } /** ** The timestamp of the last update. *
* * @param lastUpdateTime * The timestamp of the last update. */ public void setLastUpdateTime(java.util.Date lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; } /** ** The timestamp of the last update. *
* * @return The timestamp of the last update. */ public java.util.Date getLastUpdateTime() { return this.lastUpdateTime; } /** ** The timestamp of the last update. *
* * @param lastUpdateTime * The timestamp of the last update. * @return Returns a reference to this object so that method calls can be chained together. */ public OrganizationConfigRuleStatus withLastUpdateTime(java.util.Date lastUpdateTime) { setLastUpdateTime(lastUpdateTime); return this; } /** * 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 (getOrganizationConfigRuleName() != null) sb.append("OrganizationConfigRuleName: ").append(getOrganizationConfigRuleName()).append(","); if (getOrganizationRuleStatus() != null) sb.append("OrganizationRuleStatus: ").append(getOrganizationRuleStatus()).append(","); if (getErrorCode() != null) sb.append("ErrorCode: ").append(getErrorCode()).append(","); if (getErrorMessage() != null) sb.append("ErrorMessage: ").append(getErrorMessage()).append(","); if (getLastUpdateTime() != null) sb.append("LastUpdateTime: ").append(getLastUpdateTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof OrganizationConfigRuleStatus == false) return false; OrganizationConfigRuleStatus other = (OrganizationConfigRuleStatus) obj; if (other.getOrganizationConfigRuleName() == null ^ this.getOrganizationConfigRuleName() == null) return false; if (other.getOrganizationConfigRuleName() != null && other.getOrganizationConfigRuleName().equals(this.getOrganizationConfigRuleName()) == false) return false; if (other.getOrganizationRuleStatus() == null ^ this.getOrganizationRuleStatus() == null) return false; if (other.getOrganizationRuleStatus() != null && other.getOrganizationRuleStatus().equals(this.getOrganizationRuleStatus()) == false) return false; if (other.getErrorCode() == null ^ this.getErrorCode() == null) return false; if (other.getErrorCode() != null && other.getErrorCode().equals(this.getErrorCode()) == false) return false; if (other.getErrorMessage() == null ^ this.getErrorMessage() == null) return false; if (other.getErrorMessage() != null && other.getErrorMessage().equals(this.getErrorMessage()) == false) return false; if (other.getLastUpdateTime() == null ^ this.getLastUpdateTime() == null) return false; if (other.getLastUpdateTime() != null && other.getLastUpdateTime().equals(this.getLastUpdateTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getOrganizationConfigRuleName() == null) ? 0 : getOrganizationConfigRuleName().hashCode()); hashCode = prime * hashCode + ((getOrganizationRuleStatus() == null) ? 0 : getOrganizationRuleStatus().hashCode()); hashCode = prime * hashCode + ((getErrorCode() == null) ? 0 : getErrorCode().hashCode()); hashCode = prime * hashCode + ((getErrorMessage() == null) ? 0 : getErrorMessage().hashCode()); hashCode = prime * hashCode + ((getLastUpdateTime() == null) ? 0 : getLastUpdateTime().hashCode()); return hashCode; } @Override public OrganizationConfigRuleStatus clone() { try { return (OrganizationConfigRuleStatus) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.config.model.transform.OrganizationConfigRuleStatusMarshaller.getInstance().marshall(this, protocolMarshaller); } }