AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateServiceEnvironmentRequest.h
1
6#pragma once
7#include <aws/batch/BatchRequest.h>
8#include <aws/batch/Batch_EXPORTS.h>
9#include <aws/batch/model/CapacityLimit.h>
10#include <aws/batch/model/ServiceEnvironmentState.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 Batch {
20namespace Model {
21
25 public:
26 AWS_BATCH_API CreateServiceEnvironmentRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateServiceEnvironment"; }
33
34 AWS_BATCH_API Aws::String SerializePayload() const override;
35
37
41 inline const Aws::String& GetServiceEnvironmentName() const { return m_serviceEnvironmentName; }
42 inline bool ServiceEnvironmentNameHasBeenSet() const { return m_serviceEnvironmentNameHasBeenSet; }
43 template <typename ServiceEnvironmentNameT = Aws::String>
44 void SetServiceEnvironmentName(ServiceEnvironmentNameT&& value) {
45 m_serviceEnvironmentNameHasBeenSet = true;
46 m_serviceEnvironmentName = std::forward<ServiceEnvironmentNameT>(value);
47 }
48 template <typename ServiceEnvironmentNameT = Aws::String>
50 SetServiceEnvironmentName(std::forward<ServiceEnvironmentNameT>(value));
51 return *this;
52 }
54
56
60 inline ServiceEnvironmentType GetServiceEnvironmentType() const { return m_serviceEnvironmentType; }
61 inline bool ServiceEnvironmentTypeHasBeenSet() const { return m_serviceEnvironmentTypeHasBeenSet; }
63 m_serviceEnvironmentTypeHasBeenSet = true;
64 m_serviceEnvironmentType = value;
65 }
68 return *this;
69 }
71
73
77 inline ServiceEnvironmentState GetState() const { return m_state; }
78 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
79 inline void SetState(ServiceEnvironmentState value) {
80 m_stateHasBeenSet = true;
81 m_state = value;
82 }
84 SetState(value);
85 return *this;
86 }
88
90
95 inline const Aws::Vector<CapacityLimit>& GetCapacityLimits() const { return m_capacityLimits; }
96 inline bool CapacityLimitsHasBeenSet() const { return m_capacityLimitsHasBeenSet; }
97 template <typename CapacityLimitsT = Aws::Vector<CapacityLimit>>
98 void SetCapacityLimits(CapacityLimitsT&& value) {
99 m_capacityLimitsHasBeenSet = true;
100 m_capacityLimits = std::forward<CapacityLimitsT>(value);
101 }
102 template <typename CapacityLimitsT = Aws::Vector<CapacityLimit>>
104 SetCapacityLimits(std::forward<CapacityLimitsT>(value));
105 return *this;
106 }
107 template <typename CapacityLimitsT = CapacityLimit>
109 m_capacityLimitsHasBeenSet = true;
110 m_capacityLimits.emplace_back(std::forward<CapacityLimitsT>(value));
111 return *this;
112 }
114
116
123 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
124 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
125 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
126 void SetTags(TagsT&& value) {
127 m_tagsHasBeenSet = true;
128 m_tags = std::forward<TagsT>(value);
129 }
130 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
132 SetTags(std::forward<TagsT>(value));
133 return *this;
134 }
135 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
136 CreateServiceEnvironmentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
137 m_tagsHasBeenSet = true;
138 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_serviceEnvironmentName;
144
146
148
149 Aws::Vector<CapacityLimit> m_capacityLimits;
150
152 bool m_serviceEnvironmentNameHasBeenSet = false;
153 bool m_serviceEnvironmentTypeHasBeenSet = false;
154 bool m_stateHasBeenSet = false;
155 bool m_capacityLimitsHasBeenSet = false;
156 bool m_tagsHasBeenSet = false;
157};
158
159} // namespace Model
160} // namespace Batch
161} // namespace Aws
CreateServiceEnvironmentRequest & WithCapacityLimits(CapacityLimitsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateServiceEnvironmentRequest & WithState(ServiceEnvironmentState value)
CreateServiceEnvironmentRequest & WithTags(TagsT &&value)
AWS_BATCH_API Aws::String SerializePayload() const override
const Aws::Vector< CapacityLimit > & GetCapacityLimits() const
CreateServiceEnvironmentRequest & AddCapacityLimits(CapacityLimitsT &&value)
CreateServiceEnvironmentRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateServiceEnvironmentRequest & WithServiceEnvironmentName(ServiceEnvironmentNameT &&value)
CreateServiceEnvironmentRequest & WithServiceEnvironmentType(ServiceEnvironmentType 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