AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 EcsClusterDetails& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
64 template<typename ArnT = Aws::String>
65 EcsClusterDetails& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
67
69
72 inline const Aws::String& GetStatus() const { return m_status; }
73 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
74 template<typename StatusT = Aws::String>
75 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
76 template<typename StatusT = Aws::String>
77 EcsClusterDetails& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
79
81
85 inline int GetActiveServicesCount() const { return m_activeServicesCount; }
86 inline bool ActiveServicesCountHasBeenSet() const { return m_activeServicesCountHasBeenSet; }
87 inline void SetActiveServicesCount(int value) { m_activeServicesCountHasBeenSet = true; m_activeServicesCount = value; }
88 inline EcsClusterDetails& WithActiveServicesCount(int value) { SetActiveServicesCount(value); return *this;}
90
92
95 inline int GetRegisteredContainerInstancesCount() const { return m_registeredContainerInstancesCount; }
96 inline bool RegisteredContainerInstancesCountHasBeenSet() const { return m_registeredContainerInstancesCountHasBeenSet; }
97 inline void SetRegisteredContainerInstancesCount(int value) { m_registeredContainerInstancesCountHasBeenSet = true; m_registeredContainerInstancesCount = value; }
100
102
105 inline int GetRunningTasksCount() const { return m_runningTasksCount; }
106 inline bool RunningTasksCountHasBeenSet() const { return m_runningTasksCountHasBeenSet; }
107 inline void SetRunningTasksCount(int value) { m_runningTasksCountHasBeenSet = true; m_runningTasksCount = value; }
108 inline EcsClusterDetails& WithRunningTasksCount(int value) { SetRunningTasksCount(value); return *this;}
110
112
115 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
116 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
117 template<typename TagsT = Aws::Vector<Tag>>
118 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
119 template<typename TagsT = Aws::Vector<Tag>>
120 EcsClusterDetails& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
121 template<typename TagsT = Tag>
122 EcsClusterDetails& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
124
126
129 inline const EcsTaskDetails& GetTaskDetails() const { return m_taskDetails; }
130 inline bool TaskDetailsHasBeenSet() const { return m_taskDetailsHasBeenSet; }
131 template<typename TaskDetailsT = EcsTaskDetails>
132 void SetTaskDetails(TaskDetailsT&& value) { m_taskDetailsHasBeenSet = true; m_taskDetails = std::forward<TaskDetailsT>(value); }
133 template<typename TaskDetailsT = EcsTaskDetails>
134 EcsClusterDetails& WithTaskDetails(TaskDetailsT&& value) { SetTaskDetails(std::forward<TaskDetailsT>(value)); return *this;}
136 private:
137
138 Aws::String m_name;
139 bool m_nameHasBeenSet = false;
140
141 Aws::String m_arn;
142 bool m_arnHasBeenSet = false;
143
144 Aws::String m_status;
145 bool m_statusHasBeenSet = false;
146
147 int m_activeServicesCount{0};
148 bool m_activeServicesCountHasBeenSet = false;
149
150 int m_registeredContainerInstancesCount{0};
151 bool m_registeredContainerInstancesCountHasBeenSet = false;
152
153 int m_runningTasksCount{0};
154 bool m_runningTasksCountHasBeenSet = false;
155
156 Aws::Vector<Tag> m_tags;
157 bool m_tagsHasBeenSet = false;
158
159 EcsTaskDetails m_taskDetails;
160 bool m_taskDetailsHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace GuardDuty
165} // namespace Aws
EcsClusterDetails & WithRunningTasksCount(int value)
EcsClusterDetails & WithRegisteredContainerInstancesCount(int value)
const Aws::Vector< Tag > & GetTags() const
EcsClusterDetails & WithStatus(StatusT &&value)
EcsClusterDetails & AddTags(TagsT &&value)
AWS_GUARDDUTY_API EcsClusterDetails()=default
AWS_GUARDDUTY_API EcsClusterDetails(Aws::Utils::Json::JsonView jsonValue)
EcsClusterDetails & WithActiveServicesCount(int value)
AWS_GUARDDUTY_API EcsClusterDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
EcsClusterDetails & WithTaskDetails(TaskDetailsT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
EcsClusterDetails & WithTags(TagsT &&value)
EcsClusterDetails & WithArn(ArnT &&value)
EcsClusterDetails & WithName(NameT &&value)
const EcsTaskDetails & GetTaskDetails() 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