/* * 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: *

* */ private String organizationRuleStatus; /** *

* 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: *

* * * @param organizationRuleStatus * 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: *

*