AWS SDK for C++

AWS SDK for C++ Version 1.11.688

Loading...
Searching...
No Matches
CreateKxScalingGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/finspace/FinspaceRequest.h>
11#include <aws/finspace/Finspace_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16namespace finspace {
17namespace Model {
18
22 public:
23 AWS_FINSPACE_API CreateKxScalingGroupRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateKxScalingGroup"; }
30
31 AWS_FINSPACE_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetClientToken() const { return m_clientToken; }
38 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
39 template <typename ClientTokenT = Aws::String>
40 void SetClientToken(ClientTokenT&& value) {
41 m_clientTokenHasBeenSet = true;
42 m_clientToken = std::forward<ClientTokenT>(value);
43 }
44 template <typename ClientTokenT = Aws::String>
46 SetClientToken(std::forward<ClientTokenT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
57 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
58 template <typename EnvironmentIdT = Aws::String>
59 void SetEnvironmentId(EnvironmentIdT&& value) {
60 m_environmentIdHasBeenSet = true;
61 m_environmentId = std::forward<EnvironmentIdT>(value);
62 }
63 template <typename EnvironmentIdT = Aws::String>
65 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetScalingGroupName() const { return m_scalingGroupName; }
75 inline bool ScalingGroupNameHasBeenSet() const { return m_scalingGroupNameHasBeenSet; }
76 template <typename ScalingGroupNameT = Aws::String>
77 void SetScalingGroupName(ScalingGroupNameT&& value) {
78 m_scalingGroupNameHasBeenSet = true;
79 m_scalingGroupName = std::forward<ScalingGroupNameT>(value);
80 }
81 template <typename ScalingGroupNameT = Aws::String>
83 SetScalingGroupName(std::forward<ScalingGroupNameT>(value));
84 return *this;
85 }
87
89
107 inline const Aws::String& GetHostType() const { return m_hostType; }
108 inline bool HostTypeHasBeenSet() const { return m_hostTypeHasBeenSet; }
109 template <typename HostTypeT = Aws::String>
110 void SetHostType(HostTypeT&& value) {
111 m_hostTypeHasBeenSet = true;
112 m_hostType = std::forward<HostTypeT>(value);
113 }
114 template <typename HostTypeT = Aws::String>
116 SetHostType(std::forward<HostTypeT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
126 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
127 template <typename AvailabilityZoneIdT = Aws::String>
128 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) {
129 m_availabilityZoneIdHasBeenSet = true;
130 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
131 }
132 template <typename AvailabilityZoneIdT = Aws::String>
134 SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value));
135 return *this;
136 }
138
140
144 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
145 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
146 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
147 void SetTags(TagsT&& value) {
148 m_tagsHasBeenSet = true;
149 m_tags = std::forward<TagsT>(value);
150 }
151 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
153 SetTags(std::forward<TagsT>(value));
154 return *this;
155 }
156 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
157 CreateKxScalingGroupRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
158 m_tagsHasBeenSet = true;
159 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
160 return *this;
161 }
163 private:
165 bool m_clientTokenHasBeenSet = true;
166
167 Aws::String m_environmentId;
168 bool m_environmentIdHasBeenSet = false;
169
170 Aws::String m_scalingGroupName;
171 bool m_scalingGroupNameHasBeenSet = false;
172
173 Aws::String m_hostType;
174 bool m_hostTypeHasBeenSet = false;
175
176 Aws::String m_availabilityZoneId;
177 bool m_availabilityZoneIdHasBeenSet = false;
178
180 bool m_tagsHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace finspace
185} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
CreateKxScalingGroupRequest & WithTags(TagsT &&value)
CreateKxScalingGroupRequest & WithEnvironmentId(EnvironmentIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateKxScalingGroupRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateKxScalingGroupRequest & WithScalingGroupName(ScalingGroupNameT &&value)
AWS_FINSPACE_API CreateKxScalingGroupRequest()=default
virtual const char * GetServiceRequestName() const override
CreateKxScalingGroupRequest & WithClientToken(ClientTokenT &&value)
CreateKxScalingGroupRequest & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
AWS_FINSPACE_API Aws::String SerializePayload() const override
CreateKxScalingGroupRequest & WithHostType(HostTypeT &&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