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

An issue related to an add-on.

See Also:

AWS API * Reference

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

A code that describes the type of issue.

*/ inline const AddonIssueCode& GetCode() const{ return m_code; } /** *

A code that describes the type of issue.

*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *

A code that describes the type of issue.

*/ inline void SetCode(const AddonIssueCode& value) { m_codeHasBeenSet = true; m_code = value; } /** *

A code that describes the type of issue.

*/ inline void SetCode(AddonIssueCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *

A code that describes the type of issue.

*/ inline AddonIssue& WithCode(const AddonIssueCode& value) { SetCode(value); return *this;} /** *

A code that describes the type of issue.

*/ inline AddonIssue& WithCode(AddonIssueCode&& value) { SetCode(std::move(value)); return *this;} /** *

A message that provides details about the issue and what might cause it.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

A message that provides details about the issue and what might cause it.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

A message that provides details about the issue and what might cause it.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

A message that provides details about the issue and what might cause it.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

A message that provides details about the issue and what might cause it.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

A message that provides details about the issue and what might cause it.

*/ inline AddonIssue& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

A message that provides details about the issue and what might cause it.

*/ inline AddonIssue& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

A message that provides details about the issue and what might cause it.

*/ inline AddonIssue& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

The resource IDs of the issue.

*/ inline const Aws::Vector& GetResourceIds() const{ return m_resourceIds; } /** *

The resource IDs of the issue.

*/ inline bool ResourceIdsHasBeenSet() const { return m_resourceIdsHasBeenSet; } /** *

The resource IDs of the issue.

*/ inline void SetResourceIds(const Aws::Vector& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = value; } /** *

The resource IDs of the issue.

*/ inline void SetResourceIds(Aws::Vector&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = std::move(value); } /** *

The resource IDs of the issue.

*/ inline AddonIssue& WithResourceIds(const Aws::Vector& value) { SetResourceIds(value); return *this;} /** *

The resource IDs of the issue.

*/ inline AddonIssue& WithResourceIds(Aws::Vector&& value) { SetResourceIds(std::move(value)); return *this;} /** *

The resource IDs of the issue.

*/ inline AddonIssue& AddResourceIds(const Aws::String& value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(value); return *this; } /** *

The resource IDs of the issue.

*/ inline AddonIssue& AddResourceIds(Aws::String&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(std::move(value)); return *this; } /** *

The resource IDs of the issue.

*/ inline AddonIssue& AddResourceIds(const char* value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(value); return *this; } private: AddonIssueCode m_code; bool m_codeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; Aws::Vector m_resourceIds; bool m_resourceIdsHasBeenSet = false; }; } // namespace Model } // namespace EKS } // namespace Aws