AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EcsClusterDetails.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/guardduty/model/EcsTaskDetails.h>
11#include <aws/guardduty/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GuardDuty
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_GUARDDUTY_API EcsClusterDetails();
39 AWS_GUARDDUTY_API EcsClusterDetails(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetName() const{ return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline EcsClusterDetails& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline EcsClusterDetails& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline EcsClusterDetails& WithName(const char* value) { SetName(value); return *this;}
57
59
62 inline const Aws::String& GetArn() const{ return m_arn; }
63 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
64 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
65 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
66 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
67 inline EcsClusterDetails& WithArn(const Aws::String& value) { SetArn(value); return *this;}
68 inline EcsClusterDetails& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
69 inline EcsClusterDetails& WithArn(const char* value) { SetArn(value); return *this;}
71
73
76 inline const Aws::String& GetStatus() const{ return m_status; }
77 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
78 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
79 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
80 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
81 inline EcsClusterDetails& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
82 inline EcsClusterDetails& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
83 inline EcsClusterDetails& WithStatus(const char* value) { SetStatus(value); return *this;}
85
87
91 inline int GetActiveServicesCount() const{ return m_activeServicesCount; }
92 inline bool ActiveServicesCountHasBeenSet() const { return m_activeServicesCountHasBeenSet; }
93 inline void SetActiveServicesCount(int value) { m_activeServicesCountHasBeenSet = true; m_activeServicesCount = value; }
94 inline EcsClusterDetails& WithActiveServicesCount(int value) { SetActiveServicesCount(value); return *this;}
96
98
101 inline int GetRegisteredContainerInstancesCount() const{ return m_registeredContainerInstancesCount; }
102 inline bool RegisteredContainerInstancesCountHasBeenSet() const { return m_registeredContainerInstancesCountHasBeenSet; }
103 inline void SetRegisteredContainerInstancesCount(int value) { m_registeredContainerInstancesCountHasBeenSet = true; m_registeredContainerInstancesCount = value; }
106
108
111 inline int GetRunningTasksCount() const{ return m_runningTasksCount; }
112 inline bool RunningTasksCountHasBeenSet() const { return m_runningTasksCountHasBeenSet; }
113 inline void SetRunningTasksCount(int value) { m_runningTasksCountHasBeenSet = true; m_runningTasksCount = value; }
114 inline EcsClusterDetails& WithRunningTasksCount(int value) { SetRunningTasksCount(value); return *this;}
116
118
121 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
122 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
123 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
124 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
125 inline EcsClusterDetails& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
126 inline EcsClusterDetails& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
127 inline EcsClusterDetails& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
128 inline EcsClusterDetails& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
130
132
135 inline const EcsTaskDetails& GetTaskDetails() const{ return m_taskDetails; }
136 inline bool TaskDetailsHasBeenSet() const { return m_taskDetailsHasBeenSet; }
137 inline void SetTaskDetails(const EcsTaskDetails& value) { m_taskDetailsHasBeenSet = true; m_taskDetails = value; }
138 inline void SetTaskDetails(EcsTaskDetails&& value) { m_taskDetailsHasBeenSet = true; m_taskDetails = std::move(value); }
139 inline EcsClusterDetails& WithTaskDetails(const EcsTaskDetails& value) { SetTaskDetails(value); return *this;}
140 inline EcsClusterDetails& WithTaskDetails(EcsTaskDetails&& value) { SetTaskDetails(std::move(value)); return *this;}
142 private:
143
144 Aws::String m_name;
145 bool m_nameHasBeenSet = false;
146
147 Aws::String m_arn;
148 bool m_arnHasBeenSet = false;
149
150 Aws::String m_status;
151 bool m_statusHasBeenSet = false;
152
153 int m_activeServicesCount;
154 bool m_activeServicesCountHasBeenSet = false;
155
156 int m_registeredContainerInstancesCount;
157 bool m_registeredContainerInstancesCountHasBeenSet = false;
158
159 int m_runningTasksCount;
160 bool m_runningTasksCountHasBeenSet = false;
161
162 Aws::Vector<Tag> m_tags;
163 bool m_tagsHasBeenSet = false;
164
165 EcsTaskDetails m_taskDetails;
166 bool m_taskDetailsHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace GuardDuty
171} // namespace Aws
EcsClusterDetails & WithRunningTasksCount(int value)
EcsClusterDetails & WithStatus(const char *value)
EcsClusterDetails & WithRegisteredContainerInstancesCount(int value)
const Aws::Vector< Tag > & GetTags() const
EcsClusterDetails & WithTaskDetails(EcsTaskDetails &&value)
void SetTaskDetails(const EcsTaskDetails &value)
EcsClusterDetails & WithStatus(Aws::String &&value)
EcsClusterDetails & WithTaskDetails(const EcsTaskDetails &value)
AWS_GUARDDUTY_API EcsClusterDetails(Aws::Utils::Json::JsonView jsonValue)
EcsClusterDetails & WithName(Aws::String &&value)
EcsClusterDetails & WithActiveServicesCount(int value)
AWS_GUARDDUTY_API EcsClusterDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTags(Aws::Vector< Tag > &&value)
EcsClusterDetails & WithName(const Aws::String &value)
void SetName(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
EcsClusterDetails & WithTags(Aws::Vector< Tag > &&value)
void SetTaskDetails(EcsTaskDetails &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
EcsClusterDetails & AddTags(Tag &&value)
EcsClusterDetails & AddTags(const Tag &value)
EcsClusterDetails & WithArn(const char *value)
EcsClusterDetails & WithStatus(const Aws::String &value)
void SetStatus(const Aws::String &value)
EcsClusterDetails & WithName(const char *value)
EcsClusterDetails & WithArn(Aws::String &&value)
void SetArn(const Aws::String &value)
EcsClusterDetails & WithTags(const Aws::Vector< Tag > &value)
const EcsTaskDetails & GetTaskDetails() const
EcsClusterDetails & WithArn(const Aws::String &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