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

* Organization Config rule creation or deletion status in each member account. This includes the name of the rule, the * status, error code and error message when the rule creation or deletion failed. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class MemberAccountStatus implements Serializable, Cloneable, StructuredPojo { /** *

* The 12-digit account ID of a member account. *

*/ private String accountId; /** *

* The name of Config rule deployed in the member account. *

*/ private String configRuleName; /** *

* Indicates deployment status for Config rule in the member account. When management account calls * PutOrganizationConfigRule action for the first time, Config rule status is created in the member * account. When management account calls PutOrganizationConfigRule action for the second time, Config * rule status is updated in the member account. Config rule status is deleted when the management account deletes * OrganizationConfigRule and disables service access for * config-multiaccountsetup.amazonaws.com. *

*

* Config sets the state of the rule to: *

* */ private String memberAccountRuleStatus; /** *

* An error code that is returned when Config rule creation or deletion failed in the member account. *

*/ private String errorCode; /** *

* An error message indicating that Config rule account creation or deletion has failed due to an error in the * member account. *

*/ private String errorMessage; /** *

* The timestamp of the last status update. *

*/ private java.util.Date lastUpdateTime; /** *

* The 12-digit account ID of a member account. *

* * @param accountId * The 12-digit account ID of a member account. */ public void setAccountId(String accountId) { this.accountId = accountId; } /** *

* The 12-digit account ID of a member account. *

* * @return The 12-digit account ID of a member account. */ public String getAccountId() { return this.accountId; } /** *

* The 12-digit account ID of a member account. *

* * @param accountId * The 12-digit account ID of a member account. * @return Returns a reference to this object so that method calls can be chained together. */ public MemberAccountStatus withAccountId(String accountId) { setAccountId(accountId); return this; } /** *

* The name of Config rule deployed in the member account. *

* * @param configRuleName * The name of Config rule deployed in the member account. */ public void setConfigRuleName(String configRuleName) { this.configRuleName = configRuleName; } /** *

* The name of Config rule deployed in the member account. *

* * @return The name of Config rule deployed in the member account. */ public String getConfigRuleName() { return this.configRuleName; } /** *

* The name of Config rule deployed in the member account. *

* * @param configRuleName * The name of Config rule deployed in the member account. * @return Returns a reference to this object so that method calls can be chained together. */ public MemberAccountStatus withConfigRuleName(String configRuleName) { setConfigRuleName(configRuleName); return this; } /** *

* Indicates deployment status for Config rule in the member account. When management account calls * PutOrganizationConfigRule action for the first time, Config rule status is created in the member * account. When management account calls PutOrganizationConfigRule action for the second time, Config * rule status is updated in the member account. Config rule status is deleted when the management account deletes * OrganizationConfigRule and disables service access for * config-multiaccountsetup.amazonaws.com. *

*

* Config sets the state of the rule to: *

* * * @param memberAccountRuleStatus * Indicates deployment status for Config rule in the member account. When management account calls * PutOrganizationConfigRule action for the first time, Config rule status is created in the * member account. When management account calls PutOrganizationConfigRule action for the second * time, Config rule status is updated in the member account. Config rule status is deleted when the * management account deletes OrganizationConfigRule and disables service access for * config-multiaccountsetup.amazonaws.com.

*

* Config sets the state of the rule to: *

*