/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A resource that failed to be added to or removed from a group.See
* Also:
AWS
* API Reference
The ARN of the resource that failed to be added or removed.
*/ inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } /** *The ARN of the resource that failed to be added or removed.
*/ inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } /** *The ARN of the resource that failed to be added or removed.
*/ inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } /** *The ARN of the resource that failed to be added or removed.
*/ inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } /** *The ARN of the resource that failed to be added or removed.
*/ inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } /** *The ARN of the resource that failed to be added or removed.
*/ inline FailedResource& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} /** *The ARN of the resource that failed to be added or removed.
*/ inline FailedResource& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} /** *The ARN of the resource that failed to be added or removed.
*/ inline FailedResource& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} /** *The error message text associated with the failure.
*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *The error message text associated with the failure.
*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *The error message text associated with the failure.
*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *The error message text associated with the failure.
*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *The error message text associated with the failure.
*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *The error message text associated with the failure.
*/ inline FailedResource& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *The error message text associated with the failure.
*/ inline FailedResource& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *The error message text associated with the failure.
*/ inline FailedResource& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} /** *The error code associated with the failure.
*/ inline const Aws::String& GetErrorCode() const{ return m_errorCode; } /** *The error code associated with the failure.
*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *The error code associated with the failure.
*/ inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *The error code associated with the failure.
*/ inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *The error code associated with the failure.
*/ inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); } /** *The error code associated with the failure.
*/ inline FailedResource& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;} /** *The error code associated with the failure.
*/ inline FailedResource& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;} /** *The error code associated with the failure.
*/ inline FailedResource& WithErrorCode(const char* value) { SetErrorCode(value); return *this;} private: Aws::String m_resourceArn; bool m_resourceArnHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; Aws::String m_errorCode; bool m_errorCodeHasBeenSet = false; }; } // namespace Model } // namespace ResourceGroups } // namespace Aws