AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
EksClusterDetails.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/guardduty/GuardDuty_EXPORTS.h>
11#include <aws/guardduty/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GuardDuty {
23namespace Model {
24
32 public:
33 AWS_GUARDDUTY_API EksClusterDetails() = default;
34 AWS_GUARDDUTY_API EksClusterDetails(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 EksClusterDetails& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetArn() const { return m_arn; }
61 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
62 template <typename ArnT = Aws::String>
63 void SetArn(ArnT&& value) {
64 m_arnHasBeenSet = true;
65 m_arn = std::forward<ArnT>(value);
66 }
67 template <typename ArnT = Aws::String>
68 EksClusterDetails& WithArn(ArnT&& value) {
69 SetArn(std::forward<ArnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetVpcId() const { return m_vpcId; }
79 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
80 template <typename VpcIdT = Aws::String>
81 void SetVpcId(VpcIdT&& value) {
82 m_vpcIdHasBeenSet = true;
83 m_vpcId = std::forward<VpcIdT>(value);
84 }
85 template <typename VpcIdT = Aws::String>
86 EksClusterDetails& WithVpcId(VpcIdT&& value) {
87 SetVpcId(std::forward<VpcIdT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetStatus() const { return m_status; }
97 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
98 template <typename StatusT = Aws::String>
99 void SetStatus(StatusT&& value) {
100 m_statusHasBeenSet = true;
101 m_status = std::forward<StatusT>(value);
102 }
103 template <typename StatusT = Aws::String>
104 EksClusterDetails& WithStatus(StatusT&& value) {
105 SetStatus(std::forward<StatusT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
115 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
116 template <typename TagsT = Aws::Vector<Tag>>
117 void SetTags(TagsT&& value) {
118 m_tagsHasBeenSet = true;
119 m_tags = std::forward<TagsT>(value);
120 }
121 template <typename TagsT = Aws::Vector<Tag>>
122 EksClusterDetails& WithTags(TagsT&& value) {
123 SetTags(std::forward<TagsT>(value));
124 return *this;
125 }
126 template <typename TagsT = Tag>
127 EksClusterDetails& AddTags(TagsT&& value) {
128 m_tagsHasBeenSet = true;
129 m_tags.emplace_back(std::forward<TagsT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
139 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
140 template <typename CreatedAtT = Aws::Utils::DateTime>
141 void SetCreatedAt(CreatedAtT&& value) {
142 m_createdAtHasBeenSet = true;
143 m_createdAt = std::forward<CreatedAtT>(value);
144 }
145 template <typename CreatedAtT = Aws::Utils::DateTime>
146 EksClusterDetails& WithCreatedAt(CreatedAtT&& value) {
147 SetCreatedAt(std::forward<CreatedAtT>(value));
148 return *this;
149 }
151 private:
152 Aws::String m_name;
153
154 Aws::String m_arn;
155
156 Aws::String m_vpcId;
157
158 Aws::String m_status;
159
160 Aws::Vector<Tag> m_tags;
161
162 Aws::Utils::DateTime m_createdAt{};
163 bool m_nameHasBeenSet = false;
164 bool m_arnHasBeenSet = false;
165 bool m_vpcIdHasBeenSet = false;
166 bool m_statusHasBeenSet = false;
167 bool m_tagsHasBeenSet = false;
168 bool m_createdAtHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace GuardDuty
173} // namespace Aws
const Aws::Vector< Tag > & GetTags() const
EksClusterDetails & AddTags(TagsT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_GUARDDUTY_API EksClusterDetails()=default
AWS_GUARDDUTY_API EksClusterDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
EksClusterDetails & WithCreatedAt(CreatedAtT &&value)
EksClusterDetails & WithArn(ArnT &&value)
AWS_GUARDDUTY_API EksClusterDetails(Aws::Utils::Json::JsonView jsonValue)
EksClusterDetails & WithVpcId(VpcIdT &&value)
EksClusterDetails & WithTags(TagsT &&value)
EksClusterDetails & WithName(NameT &&value)
EksClusterDetails & WithStatus(StatusT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue