AWS SDK for C++

AWS SDK for C++ Version 1.11.634

Loading...
Searching...
No Matches
ServiceEnvironmentDetail.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/batch/model/ServiceEnvironmentType.h>
10#include <aws/batch/model/ServiceEnvironmentState.h>
11#include <aws/batch/model/ServiceEnvironmentStatus.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/batch/model/CapacityLimit.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Batch
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_BATCH_API ServiceEnvironmentDetail() = default;
44 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetServiceEnvironmentName() const { return m_serviceEnvironmentName; }
52 inline bool ServiceEnvironmentNameHasBeenSet() const { return m_serviceEnvironmentNameHasBeenSet; }
53 template<typename ServiceEnvironmentNameT = Aws::String>
54 void SetServiceEnvironmentName(ServiceEnvironmentNameT&& value) { m_serviceEnvironmentNameHasBeenSet = true; m_serviceEnvironmentName = std::forward<ServiceEnvironmentNameT>(value); }
55 template<typename ServiceEnvironmentNameT = Aws::String>
56 ServiceEnvironmentDetail& WithServiceEnvironmentName(ServiceEnvironmentNameT&& value) { SetServiceEnvironmentName(std::forward<ServiceEnvironmentNameT>(value)); return *this;}
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) { m_serviceEnvironmentArnHasBeenSet = true; m_serviceEnvironmentArn = std::forward<ServiceEnvironmentArnT>(value); }
67 template<typename ServiceEnvironmentArnT = Aws::String>
68 ServiceEnvironmentDetail& WithServiceEnvironmentArn(ServiceEnvironmentArnT&& value) { SetServiceEnvironmentArn(std::forward<ServiceEnvironmentArnT>(value)); return *this;}
70
72
76 inline ServiceEnvironmentType GetServiceEnvironmentType() const { return m_serviceEnvironmentType; }
77 inline bool ServiceEnvironmentTypeHasBeenSet() const { return m_serviceEnvironmentTypeHasBeenSet; }
78 inline void SetServiceEnvironmentType(ServiceEnvironmentType value) { m_serviceEnvironmentTypeHasBeenSet = true; m_serviceEnvironmentType = value; }
81
83
87 inline ServiceEnvironmentState GetState() const { return m_state; }
88 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
89 inline void SetState(ServiceEnvironmentState value) { m_stateHasBeenSet = true; m_state = value; }
92
94
97 inline ServiceEnvironmentStatus GetStatus() const { return m_status; }
98 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
99 inline void SetStatus(ServiceEnvironmentStatus value) { m_statusHasBeenSet = true; m_status = value; }
102
104
108 inline const Aws::Vector<CapacityLimit>& GetCapacityLimits() const { return m_capacityLimits; }
109 inline bool CapacityLimitsHasBeenSet() const { return m_capacityLimitsHasBeenSet; }
110 template<typename CapacityLimitsT = Aws::Vector<CapacityLimit>>
111 void SetCapacityLimits(CapacityLimitsT&& value) { m_capacityLimitsHasBeenSet = true; m_capacityLimits = std::forward<CapacityLimitsT>(value); }
112 template<typename CapacityLimitsT = Aws::Vector<CapacityLimit>>
113 ServiceEnvironmentDetail& WithCapacityLimits(CapacityLimitsT&& value) { SetCapacityLimits(std::forward<CapacityLimitsT>(value)); return *this;}
114 template<typename CapacityLimitsT = CapacityLimit>
115 ServiceEnvironmentDetail& AddCapacityLimits(CapacityLimitsT&& value) { m_capacityLimitsHasBeenSet = true; m_capacityLimits.emplace_back(std::forward<CapacityLimitsT>(value)); return *this; }
117
119
125 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
126 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
127 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
128 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
129 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
130 ServiceEnvironmentDetail& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
131 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
132 ServiceEnvironmentDetail& AddTags(TagsKeyT&& key, TagsValueT&& value) {
133 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
134 }
136 private:
137
138 Aws::String m_serviceEnvironmentName;
139 bool m_serviceEnvironmentNameHasBeenSet = false;
140
141 Aws::String m_serviceEnvironmentArn;
142 bool m_serviceEnvironmentArnHasBeenSet = false;
143
145 bool m_serviceEnvironmentTypeHasBeenSet = false;
146
148 bool m_stateHasBeenSet = false;
149
151 bool m_statusHasBeenSet = false;
152
153 Aws::Vector<CapacityLimit> m_capacityLimits;
154 bool m_capacityLimitsHasBeenSet = false;
155
157 bool m_tagsHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace Batch
162} // namespace Aws
void SetServiceEnvironmentName(ServiceEnvironmentNameT &&value)
void SetState(ServiceEnvironmentState 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