AWS SDK for C++

AWS SDK for C++ Version 1.11.635

Loading...
Searching...
No Matches
CreateServiceEnvironmentRequest.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/BatchRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/batch/model/ServiceEnvironmentType.h>
11#include <aws/batch/model/ServiceEnvironmentState.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 Batch
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_BATCH_API CreateServiceEnvironmentRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateServiceEnvironment"; }
36
37 AWS_BATCH_API Aws::String SerializePayload() const override;
38
39
41
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) { m_serviceEnvironmentNameHasBeenSet = true; m_serviceEnvironmentName = std::forward<ServiceEnvironmentNameT>(value); }
49 template<typename ServiceEnvironmentNameT = Aws::String>
50 CreateServiceEnvironmentRequest& WithServiceEnvironmentName(ServiceEnvironmentNameT&& value) { SetServiceEnvironmentName(std::forward<ServiceEnvironmentNameT>(value)); return *this;}
52
54
58 inline ServiceEnvironmentType GetServiceEnvironmentType() const { return m_serviceEnvironmentType; }
59 inline bool ServiceEnvironmentTypeHasBeenSet() const { return m_serviceEnvironmentTypeHasBeenSet; }
60 inline void SetServiceEnvironmentType(ServiceEnvironmentType value) { m_serviceEnvironmentTypeHasBeenSet = true; m_serviceEnvironmentType = value; }
63
65
69 inline ServiceEnvironmentState GetState() const { return m_state; }
70 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
71 inline void SetState(ServiceEnvironmentState value) { m_stateHasBeenSet = true; m_state = value; }
74
76
81 inline const Aws::Vector<CapacityLimit>& GetCapacityLimits() const { return m_capacityLimits; }
82 inline bool CapacityLimitsHasBeenSet() const { return m_capacityLimitsHasBeenSet; }
83 template<typename CapacityLimitsT = Aws::Vector<CapacityLimit>>
84 void SetCapacityLimits(CapacityLimitsT&& value) { m_capacityLimitsHasBeenSet = true; m_capacityLimits = std::forward<CapacityLimitsT>(value); }
85 template<typename CapacityLimitsT = Aws::Vector<CapacityLimit>>
86 CreateServiceEnvironmentRequest& WithCapacityLimits(CapacityLimitsT&& value) { SetCapacityLimits(std::forward<CapacityLimitsT>(value)); return *this;}
87 template<typename CapacityLimitsT = CapacityLimit>
88 CreateServiceEnvironmentRequest& AddCapacityLimits(CapacityLimitsT&& value) { m_capacityLimitsHasBeenSet = true; m_capacityLimits.emplace_back(std::forward<CapacityLimitsT>(value)); return *this; }
90
92
99 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
100 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
101 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
102 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
103 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
104 CreateServiceEnvironmentRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
105 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
106 CreateServiceEnvironmentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
107 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
108 }
110 private:
111
112 Aws::String m_serviceEnvironmentName;
113 bool m_serviceEnvironmentNameHasBeenSet = false;
114
116 bool m_serviceEnvironmentTypeHasBeenSet = false;
117
119 bool m_stateHasBeenSet = false;
120
121 Aws::Vector<CapacityLimit> m_capacityLimits;
122 bool m_capacityLimitsHasBeenSet = false;
123
125 bool m_tagsHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace Batch
130} // 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