/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AppRegistry { namespace Model { /** *

The information about the resource group integration.

See * Also:

AWS * API Reference

*/ class ResourceGroup { public: AWS_APPREGISTRY_API ResourceGroup(); AWS_APPREGISTRY_API ResourceGroup(Aws::Utils::Json::JsonView jsonValue); AWS_APPREGISTRY_API ResourceGroup& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_APPREGISTRY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The state of the propagation process for the resource group. The states * includes:

CREATING if the resource group is in the process * of being created.

CREATE_COMPLETE if the resource group was * created successfully.

CREATE_FAILED if the resource group * failed to be created.

UPDATING if the resource group is in * the process of being updated.

UPDATE_COMPLETE if the * resource group updated successfully.

UPDATE_FAILED if the * resource group could not update successfully.

*/ inline const ResourceGroupState& GetState() const{ return m_state; } /** *

The state of the propagation process for the resource group. The states * includes:

CREATING if the resource group is in the process * of being created.

CREATE_COMPLETE if the resource group was * created successfully.

CREATE_FAILED if the resource group * failed to be created.

UPDATING if the resource group is in * the process of being updated.

UPDATE_COMPLETE if the * resource group updated successfully.

UPDATE_FAILED if the * resource group could not update successfully.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The state of the propagation process for the resource group. The states * includes:

CREATING if the resource group is in the process * of being created.

CREATE_COMPLETE if the resource group was * created successfully.

CREATE_FAILED if the resource group * failed to be created.

UPDATING if the resource group is in * the process of being updated.

UPDATE_COMPLETE if the * resource group updated successfully.

UPDATE_FAILED if the * resource group could not update successfully.

*/ inline void SetState(const ResourceGroupState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The state of the propagation process for the resource group. The states * includes:

CREATING if the resource group is in the process * of being created.

CREATE_COMPLETE if the resource group was * created successfully.

CREATE_FAILED if the resource group * failed to be created.

UPDATING if the resource group is in * the process of being updated.

UPDATE_COMPLETE if the * resource group updated successfully.

UPDATE_FAILED if the * resource group could not update successfully.

*/ inline void SetState(ResourceGroupState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The state of the propagation process for the resource group. The states * includes:

CREATING if the resource group is in the process * of being created.

CREATE_COMPLETE if the resource group was * created successfully.

CREATE_FAILED if the resource group * failed to be created.

UPDATING if the resource group is in * the process of being updated.

UPDATE_COMPLETE if the * resource group updated successfully.

UPDATE_FAILED if the * resource group could not update successfully.

*/ inline ResourceGroup& WithState(const ResourceGroupState& value) { SetState(value); return *this;} /** *

The state of the propagation process for the resource group. The states * includes:

CREATING if the resource group is in the process * of being created.

CREATE_COMPLETE if the resource group was * created successfully.

CREATE_FAILED if the resource group * failed to be created.

UPDATING if the resource group is in * the process of being updated.

UPDATE_COMPLETE if the * resource group updated successfully.

UPDATE_FAILED if the * resource group could not update successfully.

*/ inline ResourceGroup& WithState(ResourceGroupState&& value) { SetState(std::move(value)); return *this;} /** *

The Amazon resource name (ARN) of the resource group.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon resource name (ARN) of the resource group.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon resource name (ARN) of the resource group.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon resource name (ARN) of the resource group.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon resource name (ARN) of the resource group.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon resource name (ARN) of the resource group.

*/ inline ResourceGroup& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon resource name (ARN) of the resource group.

*/ inline ResourceGroup& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon resource name (ARN) of the resource group.

*/ inline ResourceGroup& WithArn(const char* value) { SetArn(value); return *this;} /** *

The error message that generates when the propagation process for the * resource group fails.

*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *

The error message that generates when the propagation process for the * resource group fails.

*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *

The error message that generates when the propagation process for the * resource group fails.

*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *

The error message that generates when the propagation process for the * resource group fails.

*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *

The error message that generates when the propagation process for the * resource group fails.

*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *

The error message that generates when the propagation process for the * resource group fails.

*/ inline ResourceGroup& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

The error message that generates when the propagation process for the * resource group fails.

*/ inline ResourceGroup& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *

The error message that generates when the propagation process for the * resource group fails.

*/ inline ResourceGroup& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} private: ResourceGroupState m_state; bool m_stateHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; }; } // namespace Model } // namespace AppRegistry } // namespace Aws