AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
FargateProfileIssue.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/eks/EKS_EXPORTS.h>
10#include <aws/eks/model/FargateProfileIssueCode.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace EKS {
22namespace Model {
23
31 public:
32 AWS_EKS_API FargateProfileIssue() = default;
36
38
41 inline FargateProfileIssueCode GetCode() const { return m_code; }
42 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
43 inline void SetCode(FargateProfileIssueCode value) {
44 m_codeHasBeenSet = true;
45 m_code = value;
46 }
48 SetCode(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetMessage() const { return m_message; }
58 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
59 template <typename MessageT = Aws::String>
60 void SetMessage(MessageT&& value) {
61 m_messageHasBeenSet = true;
62 m_message = std::forward<MessageT>(value);
63 }
64 template <typename MessageT = Aws::String>
65 FargateProfileIssue& WithMessage(MessageT&& value) {
66 SetMessage(std::forward<MessageT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Vector<Aws::String>& GetResourceIds() const { return m_resourceIds; }
76 inline bool ResourceIdsHasBeenSet() const { return m_resourceIdsHasBeenSet; }
77 template <typename ResourceIdsT = Aws::Vector<Aws::String>>
78 void SetResourceIds(ResourceIdsT&& value) {
79 m_resourceIdsHasBeenSet = true;
80 m_resourceIds = std::forward<ResourceIdsT>(value);
81 }
82 template <typename ResourceIdsT = Aws::Vector<Aws::String>>
83 FargateProfileIssue& WithResourceIds(ResourceIdsT&& value) {
84 SetResourceIds(std::forward<ResourceIdsT>(value));
85 return *this;
86 }
87 template <typename ResourceIdsT = Aws::String>
88 FargateProfileIssue& AddResourceIds(ResourceIdsT&& value) {
89 m_resourceIdsHasBeenSet = true;
90 m_resourceIds.emplace_back(std::forward<ResourceIdsT>(value));
91 return *this;
92 }
94 private:
96
97 Aws::String m_message;
98
99 Aws::Vector<Aws::String> m_resourceIds;
100 bool m_codeHasBeenSet = false;
101 bool m_messageHasBeenSet = false;
102 bool m_resourceIdsHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace EKS
107} // namespace Aws
FargateProfileIssue & WithResourceIds(ResourceIdsT &&value)
FargateProfileIssue & AddResourceIds(ResourceIdsT &&value)
FargateProfileIssue & WithMessage(MessageT &&value)
AWS_EKS_API FargateProfileIssue()=default
AWS_EKS_API FargateProfileIssue & operator=(Aws::Utils::Json::JsonView jsonValue)
FargateProfileIssue & WithCode(FargateProfileIssueCode value)
void SetCode(FargateProfileIssueCode value)
void SetResourceIds(ResourceIdsT &&value)
FargateProfileIssueCode GetCode() const
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetResourceIds() const
AWS_EKS_API FargateProfileIssue(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMessage() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue