/**
* 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
* 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:
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
* 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:
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
* 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:
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
* 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:
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
* 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:
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
* 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:
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 = false; Aws::String m_configRuleName; bool m_configRuleNameHasBeenSet = false; MemberAccountRuleStatus m_memberAccountRuleStatus; bool m_memberAccountRuleStatusHasBeenSet = false; Aws::String m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; Aws::Utils::DateTime m_lastUpdateTime; bool m_lastUpdateTimeHasBeenSet = false; }; } // namespace Model } // namespace ConfigService } // namespace Aws