AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ServiceEnvironmentDetail.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/CapacityLimit.h>
9#include <aws/batch/model/ServiceEnvironmentState.h>
10#include <aws/batch/model/ServiceEnvironmentStatus.h>
11#include <aws/batch/model/ServiceEnvironmentType.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Batch {
26namespace Model {
27
35 public:
36 AWS_BATCH_API ServiceEnvironmentDetail() = default;
39 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetServiceEnvironmentName() const { return m_serviceEnvironmentName; }
46 inline bool ServiceEnvironmentNameHasBeenSet() const { return m_serviceEnvironmentNameHasBeenSet; }
47 template <typename ServiceEnvironmentNameT = Aws::String>
48 void SetServiceEnvironmentName(ServiceEnvironmentNameT&& value) {
49 m_serviceEnvironmentNameHasBeenSet = true;
50 m_serviceEnvironmentName = std::forward<ServiceEnvironmentNameT>(value);
51 }
52 template <typename ServiceEnvironmentNameT = Aws::String>
53 ServiceEnvironmentDetail& WithServiceEnvironmentName(ServiceEnvironmentNameT&& value) {
54 SetServiceEnvironmentName(std::forward<ServiceEnvironmentNameT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetServiceEnvironmentArn() const { return m_serviceEnvironmentArn; }
64 inline bool ServiceEnvironmentArnHasBeenSet() const { return m_serviceEnvironmentArnHasBeenSet; }
65 template <typename ServiceEnvironmentArnT = Aws::String>
66 void SetServiceEnvironmentArn(ServiceEnvironmentArnT&& value) {
67 m_serviceEnvironmentArnHasBeenSet = true;
68 m_serviceEnvironmentArn = std::forward<ServiceEnvironmentArnT>(value);
69 }
70 template <typename ServiceEnvironmentArnT = Aws::String>
71 ServiceEnvironmentDetail& WithServiceEnvironmentArn(ServiceEnvironmentArnT&& value) {
72 SetServiceEnvironmentArn(std::forward<ServiceEnvironmentArnT>(value));
73 return *this;
74 }
76
78
82 inline ServiceEnvironmentType GetServiceEnvironmentType() const { return m_serviceEnvironmentType; }
83 inline bool ServiceEnvironmentTypeHasBeenSet() const { return m_serviceEnvironmentTypeHasBeenSet; }
85 m_serviceEnvironmentTypeHasBeenSet = true;
86 m_serviceEnvironmentType = value;
87 }
90 return *this;
91 }
93
95
99 inline ServiceEnvironmentState GetState() const { return m_state; }
100 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
102 m_stateHasBeenSet = true;
103 m_state = value;
104 }
106 SetState(value);
107 return *this;
108 }
110
112
115 inline ServiceEnvironmentStatus GetStatus() const { return m_status; }
116 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
118 m_statusHasBeenSet = true;
119 m_status = value;
120 }
122 SetStatus(value);
123 return *this;
124 }
126
128
132 inline const Aws::Vector<CapacityLimit>& GetCapacityLimits() const { return m_capacityLimits; }
133 inline bool CapacityLimitsHasBeenSet() const { return m_capacityLimitsHasBeenSet; }
134 template <typename CapacityLimitsT = Aws::Vector<CapacityLimit>>
135 void SetCapacityLimits(CapacityLimitsT&& value) {
136 m_capacityLimitsHasBeenSet = true;
137 m_capacityLimits = std::forward<CapacityLimitsT>(value);
138 }
139 template <typename CapacityLimitsT = Aws::Vector<CapacityLimit>>
141 SetCapacityLimits(std::forward<CapacityLimitsT>(value));
142 return *this;
143 }
144 template <typename CapacityLimitsT = CapacityLimit>
145 ServiceEnvironmentDetail& AddCapacityLimits(CapacityLimitsT&& value) {
146 m_capacityLimitsHasBeenSet = true;
147 m_capacityLimits.emplace_back(std::forward<CapacityLimitsT>(value));
148 return *this;
149 }
151
153
159 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
160 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
161 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
162 void SetTags(TagsT&& value) {
163 m_tagsHasBeenSet = true;
164 m_tags = std::forward<TagsT>(value);
165 }
166 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
168 SetTags(std::forward<TagsT>(value));
169 return *this;
170 }
171 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
172 ServiceEnvironmentDetail& AddTags(TagsKeyT&& key, TagsValueT&& value) {
173 m_tagsHasBeenSet = true;
174 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
175 return *this;
176 }
178 private:
179 Aws::String m_serviceEnvironmentName;
180
181 Aws::String m_serviceEnvironmentArn;
182
184
186
188
189 Aws::Vector<CapacityLimit> m_capacityLimits;
190
192 bool m_serviceEnvironmentNameHasBeenSet = false;
193 bool m_serviceEnvironmentArnHasBeenSet = false;
194 bool m_serviceEnvironmentTypeHasBeenSet = false;
195 bool m_stateHasBeenSet = false;
196 bool m_statusHasBeenSet = false;
197 bool m_capacityLimitsHasBeenSet = false;
198 bool m_tagsHasBeenSet = false;
199};
200
201} // namespace Model
202} // namespace Batch
203} // namespace Aws
void SetServiceEnvironmentName(ServiceEnvironmentNameT &&value)
AWS_BATCH_API ServiceEnvironmentDetail()=default
ServiceEnvironmentType GetServiceEnvironmentType() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ServiceEnvironmentDetail & WithServiceEnvironmentArn(ServiceEnvironmentArnT &&value)
AWS_BATCH_API ServiceEnvironmentDetail(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(ServiceEnvironmentStatus value)
void SetServiceEnvironmentArn(ServiceEnvironmentArnT &&value)
const Aws::Vector< CapacityLimit > & GetCapacityLimits() const
AWS_BATCH_API ServiceEnvironmentDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceEnvironmentDetail & WithServiceEnvironmentType(ServiceEnvironmentType value)
ServiceEnvironmentDetail & AddCapacityLimits(CapacityLimitsT &&value)
ServiceEnvironmentDetail & WithStatus(ServiceEnvironmentStatus value)
void SetServiceEnvironmentType(ServiceEnvironmentType value)
ServiceEnvironmentDetail & WithTags(TagsT &&value)
ServiceEnvironmentDetail & WithCapacityLimits(CapacityLimitsT &&value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceEnvironmentDetail & AddTags(TagsKeyT &&key, TagsValueT &&value)
ServiceEnvironmentDetail & WithState(ServiceEnvironmentState value)
ServiceEnvironmentDetail & WithServiceEnvironmentName(ServiceEnvironmentNameT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue