/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include 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 Also:
AWS
* API Reference
The 12-digit account ID of a member account.
*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *The 12-digit account ID of a member account.
*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *The 12-digit account ID of a member account.
*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *The 12-digit account ID of a member account.
*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *The 12-digit account ID of a member account.
*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *The 12-digit account ID of a member account.
*/ inline MemberAccountStatus& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *The 12-digit account ID of a member account.
*/ inline MemberAccountStatus& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *The 12-digit account ID of a member account.
*/ inline MemberAccountStatus& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *The name of config rule deployed in the member account.
*/ inline const Aws::String& GetConfigRuleName() const{ return m_configRuleName; } /** *The name of config rule deployed in the member account.
*/ inline bool ConfigRuleNameHasBeenSet() const { return m_configRuleNameHasBeenSet; } /** *The name of config rule deployed in the member account.
*/ inline void SetConfigRuleName(const Aws::String& value) { m_configRuleNameHasBeenSet = true; m_configRuleName = value; } /** *The name of config rule deployed in the member account.
*/ inline void SetConfigRuleName(Aws::String&& value) { m_configRuleNameHasBeenSet = true; m_configRuleName = std::move(value); } /** *The name of config rule deployed in the member account.
*/ inline void SetConfigRuleName(const char* value) { m_configRuleNameHasBeenSet = true; m_configRuleName.assign(value); } /** *The name of config rule deployed in the member account.
*/ inline MemberAccountStatus& WithConfigRuleName(const Aws::String& value) { SetConfigRuleName(value); return *this;} /** *The name of config rule deployed in the member account.
*/ inline MemberAccountStatus& WithConfigRuleName(Aws::String&& value) { SetConfigRuleName(std::move(value)); return *this;} /** *The name of config rule deployed in the member account.
*/ inline MemberAccountStatus& WithConfigRuleName(const char* value) { SetConfigRuleName(value); return *this;} /** *Indicates deployment status for config rule in the member account. When
* master account calls PutOrganizationConfigRule action for the first
* time, config rule status is created in the member account. When master account
* calls PutOrganizationConfigRule action for the second time, config
* rule status is updated in the member account. Config rule status is deleted when
* the master account deletes OrganizationConfigRule and disables
* service access for config-multiaccountsetup.amazonaws.com.
* AWS Config sets the state of the rule to:
* CREATE_SUCCESSFUL when config rule has been created in the member
* account.
CREATE_IN_PROGRESS when config rule is
* being created in the member account.
* CREATE_FAILED when config rule creation has failed in the member
* account.
DELETE_FAILED when config rule deletion
* has failed in the member account.
* DELETE_IN_PROGRESS when config rule is being deleted in the member
* account.
DELETE_SUCCESSFUL when config rule has
* been deleted in the member account.
* UPDATE_SUCCESSFUL when config rule has been updated in the member
* account.
UPDATE_IN_PROGRESS when config rule is
* being updated in the member account.
* UPDATE_FAILED when config rule deletion has failed in the member
* account.
Indicates deployment status for config rule in the member account. When
* master account calls PutOrganizationConfigRule action for the first
* time, config rule status is created in the member account. When master account
* calls PutOrganizationConfigRule action for the second time, config
* rule status is updated in the member account. Config rule status is deleted when
* the master account deletes OrganizationConfigRule and disables
* service access for config-multiaccountsetup.amazonaws.com.
* AWS Config sets the state of the rule to:
* CREATE_SUCCESSFUL when config rule has been created in the member
* account.
CREATE_IN_PROGRESS when config rule is
* being created in the member account.
* CREATE_FAILED when config rule creation has failed in the member
* account.
DELETE_FAILED when config rule deletion
* has failed in the member account.
* DELETE_IN_PROGRESS when config rule is being deleted in the member
* account.
DELETE_SUCCESSFUL when config rule has
* been deleted in the member account.
* UPDATE_SUCCESSFUL when config rule has been updated in the member
* account.
UPDATE_IN_PROGRESS when config rule is
* being updated in the member account.
* UPDATE_FAILED when config rule deletion has failed in the member
* account.
Indicates deployment status for config rule in the member account. When
* master account calls PutOrganizationConfigRule action for the first
* time, config rule status is created in the member account. When master account
* calls PutOrganizationConfigRule action for the second time, config
* rule status is updated in the member account. Config rule status is deleted when
* the master account deletes OrganizationConfigRule and disables
* service access for config-multiaccountsetup.amazonaws.com.
* AWS Config sets the state of the rule to:
* CREATE_SUCCESSFUL when config rule has been created in the member
* account.
CREATE_IN_PROGRESS when config rule is
* being created in the member account.
* CREATE_FAILED when config rule creation has failed in the member
* account.
DELETE_FAILED when config rule deletion
* has failed in the member account.
* DELETE_IN_PROGRESS when config rule is being deleted in the member
* account.
DELETE_SUCCESSFUL when config rule has
* been deleted in the member account.
* UPDATE_SUCCESSFUL when config rule has been updated in the member
* account.
UPDATE_IN_PROGRESS when config rule is
* being updated in the member account.
* UPDATE_FAILED when config rule deletion has failed in the member
* account.
Indicates deployment status for config rule in the member account. When
* master account calls PutOrganizationConfigRule action for the first
* time, config rule status is created in the member account. When master account
* calls PutOrganizationConfigRule action for the second time, config
* rule status is updated in the member account. Config rule status is deleted when
* the master account deletes OrganizationConfigRule and disables
* service access for config-multiaccountsetup.amazonaws.com.
* AWS Config sets the state of the rule to:
* CREATE_SUCCESSFUL when config rule has been created in the member
* account.
CREATE_IN_PROGRESS when config rule is
* being created in the member account.
* CREATE_FAILED when config rule creation has failed in the member
* account.
DELETE_FAILED when config rule deletion
* has failed in the member account.
* DELETE_IN_PROGRESS when config rule is being deleted in the member
* account.
DELETE_SUCCESSFUL when config rule has
* been deleted in the member account.
* UPDATE_SUCCESSFUL when config rule has been updated in the member
* account.
UPDATE_IN_PROGRESS when config rule is
* being updated in the member account.
* UPDATE_FAILED when config rule deletion has failed in the member
* account.
Indicates deployment status for config rule in the member account. When
* master account calls PutOrganizationConfigRule action for the first
* time, config rule status is created in the member account. When master account
* calls PutOrganizationConfigRule action for the second time, config
* rule status is updated in the member account. Config rule status is deleted when
* the master account deletes OrganizationConfigRule and disables
* service access for config-multiaccountsetup.amazonaws.com.
* AWS Config sets the state of the rule to:
* CREATE_SUCCESSFUL when config rule has been created in the member
* account.
CREATE_IN_PROGRESS when config rule is
* being created in the member account.
* CREATE_FAILED when config rule creation has failed in the member
* account.
DELETE_FAILED when config rule deletion
* has failed in the member account.
* DELETE_IN_PROGRESS when config rule is being deleted in the member
* account.
DELETE_SUCCESSFUL when config rule has
* been deleted in the member account.
* UPDATE_SUCCESSFUL when config rule has been updated in the member
* account.
UPDATE_IN_PROGRESS when config rule is
* being updated in the member account.
* UPDATE_FAILED when config rule deletion has failed in the member
* account.
Indicates deployment status for config rule in the member account. When
* master account calls PutOrganizationConfigRule action for the first
* time, config rule status is created in the member account. When master account
* calls PutOrganizationConfigRule action for the second time, config
* rule status is updated in the member account. Config rule status is deleted when
* the master account deletes OrganizationConfigRule and disables
* service access for config-multiaccountsetup.amazonaws.com.
* AWS Config sets the state of the rule to:
* CREATE_SUCCESSFUL when config rule has been created in the member
* account.
CREATE_IN_PROGRESS when config rule is
* being created in the member account.
* CREATE_FAILED when config rule creation has failed in the member
* account.
DELETE_FAILED when config rule deletion
* has failed in the member account.
* DELETE_IN_PROGRESS when config rule is being deleted in the member
* account.
DELETE_SUCCESSFUL when config rule has
* been deleted in the member account.
* UPDATE_SUCCESSFUL when config rule has been updated in the member
* account.
UPDATE_IN_PROGRESS when config rule is
* being updated in the member account.
* UPDATE_FAILED when config rule deletion has failed in the member
* account.
An error code that is returned when config rule creation or deletion failed * in the member account.
*/ inline const Aws::String& GetErrorCode() const{ return m_errorCode; } /** *An error code that is returned when config rule creation or deletion failed * in the member account.
*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *An error code that is returned when config rule creation or deletion failed * in the member account.
*/ inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *An error code that is returned when config rule creation or deletion failed * in the member account.
*/ inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *An error code that is returned when config rule creation or deletion failed * in the member account.
*/ inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); } /** *An error code that is returned when config rule creation or deletion failed * in the member account.
*/ inline MemberAccountStatus& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;} /** *An error code that is returned when config rule creation or deletion failed * in the member account.
*/ inline MemberAccountStatus& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;} /** *An error code that is returned when config rule creation or deletion failed * in the member account.
*/ inline MemberAccountStatus& WithErrorCode(const char* value) { SetErrorCode(value); return *this;} /** *An error message indicating that config rule account creation or deletion has * failed due to an error in the member account.
*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *An error message indicating that config rule account creation or deletion has * failed due to an error in the member account.
*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *An error message indicating that config rule account creation or deletion has * failed due to an error in the member account.
*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *An error message indicating that config rule account creation or deletion has * failed due to an error in the member account.
*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *An error message indicating that config rule account creation or deletion has * failed due to an error in the member account.
*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *An error message indicating that config rule account creation or deletion has * failed due to an error in the member account.
*/ inline MemberAccountStatus& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *An error message indicating that config rule account creation or deletion has * failed due to an error in the member account.
*/ inline MemberAccountStatus& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *An error message indicating that config rule account creation or deletion has * failed due to an error in the member account.
*/ inline MemberAccountStatus& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} /** *The timestamp of the last status update.
*/ inline const Aws::Utils::DateTime& GetLastUpdateTime() const{ return m_lastUpdateTime; } /** *The timestamp of the last status update.
*/ inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; } /** *The timestamp of the last status update.
*/ inline void SetLastUpdateTime(const Aws::Utils::DateTime& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = value; } /** *The timestamp of the last status update.
*/ inline void SetLastUpdateTime(Aws::Utils::DateTime&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::move(value); } /** *The timestamp of the last status update.
*/ inline MemberAccountStatus& WithLastUpdateTime(const Aws::Utils::DateTime& value) { SetLastUpdateTime(value); return *this;} /** *The timestamp of the last status update.
*/ inline MemberAccountStatus& WithLastUpdateTime(Aws::Utils::DateTime&& value) { SetLastUpdateTime(std::move(value)); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet; Aws::String m_configRuleName; bool m_configRuleNameHasBeenSet; MemberAccountRuleStatus m_memberAccountRuleStatus; bool m_memberAccountRuleStatusHasBeenSet; Aws::String m_errorCode; bool m_errorCodeHasBeenSet; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet; Aws::Utils::DateTime m_lastUpdateTime; bool m_lastUpdateTimeHasBeenSet; }; } // namespace Model } // namespace ConfigService } // namespace Aws