AWS SDK for C++

AWS SDK for C++ Version 1.11.937

Loading...
Searching...
No Matches
CreateClusterRequest.h
1
6#pragma once
7#include <aws/cloudhsmv2/CloudHSMV2Request.h>
8#include <aws/cloudhsmv2/CloudHSMV2_EXPORTS.h>
9#include <aws/cloudhsmv2/model/BackupRetentionPolicy.h>
10#include <aws/cloudhsmv2/model/ClusterMode.h>
11#include <aws/cloudhsmv2/model/NetworkType.h>
12#include <aws/cloudhsmv2/model/Tag.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 CloudHSMV2 {
20namespace Model {
21
25 public:
26 AWS_CLOUDHSMV2_API CreateClusterRequest() = 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 "CreateCluster"; }
33
34 AWS_CLOUDHSMV2_API Aws::String SerializePayload() const override;
35
37
39
42 inline const BackupRetentionPolicy& GetBackupRetentionPolicy() const { return m_backupRetentionPolicy; }
43 inline bool BackupRetentionPolicyHasBeenSet() const { return m_backupRetentionPolicyHasBeenSet; }
44 template <typename BackupRetentionPolicyT = BackupRetentionPolicy>
45 void SetBackupRetentionPolicy(BackupRetentionPolicyT&& value) {
46 m_backupRetentionPolicyHasBeenSet = true;
47 m_backupRetentionPolicy = std::forward<BackupRetentionPolicyT>(value);
48 }
49 template <typename BackupRetentionPolicyT = BackupRetentionPolicy>
50 CreateClusterRequest& WithBackupRetentionPolicy(BackupRetentionPolicyT&& value) {
51 SetBackupRetentionPolicy(std::forward<BackupRetentionPolicyT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetHsmType() const { return m_hsmType; }
62 inline bool HsmTypeHasBeenSet() const { return m_hsmTypeHasBeenSet; }
63 template <typename HsmTypeT = Aws::String>
64 void SetHsmType(HsmTypeT&& value) {
65 m_hsmTypeHasBeenSet = true;
66 m_hsmType = std::forward<HsmTypeT>(value);
67 }
68 template <typename HsmTypeT = Aws::String>
69 CreateClusterRequest& WithHsmType(HsmTypeT&& value) {
70 SetHsmType(std::forward<HsmTypeT>(value));
71 return *this;
72 }
74
76
83 inline const Aws::String& GetSourceBackupId() const { return m_sourceBackupId; }
84 inline bool SourceBackupIdHasBeenSet() const { return m_sourceBackupIdHasBeenSet; }
85 template <typename SourceBackupIdT = Aws::String>
86 void SetSourceBackupId(SourceBackupIdT&& value) {
87 m_sourceBackupIdHasBeenSet = true;
88 m_sourceBackupId = std::forward<SourceBackupIdT>(value);
89 }
90 template <typename SourceBackupIdT = Aws::String>
91 CreateClusterRequest& WithSourceBackupId(SourceBackupIdT&& value) {
92 SetSourceBackupId(std::forward<SourceBackupIdT>(value));
93 return *this;
94 }
96
98
105 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
106 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
107 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
108 void SetSubnetIds(SubnetIdsT&& value) {
109 m_subnetIdsHasBeenSet = true;
110 m_subnetIds = std::forward<SubnetIdsT>(value);
111 }
112 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
113 CreateClusterRequest& WithSubnetIds(SubnetIdsT&& value) {
114 SetSubnetIds(std::forward<SubnetIdsT>(value));
115 return *this;
116 }
117 template <typename SubnetIdsT = Aws::String>
118 CreateClusterRequest& AddSubnetIds(SubnetIdsT&& value) {
119 m_subnetIdsHasBeenSet = true;
120 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
121 return *this;
122 }
124
126
130 inline NetworkType GetNetworkType() const { return m_networkType; }
131 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
132 inline void SetNetworkType(NetworkType value) {
133 m_networkTypeHasBeenSet = true;
134 m_networkType = value;
135 }
137 SetNetworkType(value);
138 return *this;
139 }
141
143
146 inline const Aws::Vector<Tag>& GetTagList() const { return m_tagList; }
147 inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
148 template <typename TagListT = Aws::Vector<Tag>>
149 void SetTagList(TagListT&& value) {
150 m_tagListHasBeenSet = true;
151 m_tagList = std::forward<TagListT>(value);
152 }
153 template <typename TagListT = Aws::Vector<Tag>>
155 SetTagList(std::forward<TagListT>(value));
156 return *this;
157 }
158 template <typename TagListT = Tag>
159 CreateClusterRequest& AddTagList(TagListT&& value) {
160 m_tagListHasBeenSet = true;
161 m_tagList.emplace_back(std::forward<TagListT>(value));
162 return *this;
163 }
165
167
171 inline ClusterMode GetMode() const { return m_mode; }
172 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
173 inline void SetMode(ClusterMode value) {
174 m_modeHasBeenSet = true;
175 m_mode = value;
176 }
178 SetMode(value);
179 return *this;
180 }
182 private:
183 BackupRetentionPolicy m_backupRetentionPolicy;
184
185 Aws::String m_hsmType;
186
187 Aws::String m_sourceBackupId;
188
189 Aws::Vector<Aws::String> m_subnetIds;
190
191 NetworkType m_networkType{NetworkType::NOT_SET};
192
193 Aws::Vector<Tag> m_tagList;
194
196 bool m_backupRetentionPolicyHasBeenSet = false;
197 bool m_hsmTypeHasBeenSet = false;
198 bool m_sourceBackupIdHasBeenSet = false;
199 bool m_subnetIdsHasBeenSet = false;
200 bool m_networkTypeHasBeenSet = false;
201 bool m_tagListHasBeenSet = false;
202 bool m_modeHasBeenSet = false;
203};
204
205} // namespace Model
206} // namespace CloudHSMV2
207} // namespace Aws
AWS_CLOUDHSMV2_API CreateClusterRequest()=default
void SetBackupRetentionPolicy(BackupRetentionPolicyT &&value)
virtual const char * GetServiceRequestName() const override
CreateClusterRequest & WithBackupRetentionPolicy(BackupRetentionPolicyT &&value)
AWS_CLOUDHSMV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const BackupRetentionPolicy & GetBackupRetentionPolicy() const
AWS_CLOUDHSMV2_API Aws::String SerializePayload() const override
CreateClusterRequest & AddTagList(TagListT &&value)
CreateClusterRequest & AddSubnetIds(SubnetIdsT &&value)
CreateClusterRequest & WithHsmType(HsmTypeT &&value)
CreateClusterRequest & WithSourceBackupId(SourceBackupIdT &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
CreateClusterRequest & WithNetworkType(NetworkType value)
const Aws::Vector< Tag > & GetTagList() const
CreateClusterRequest & WithSubnetIds(SubnetIdsT &&value)
CreateClusterRequest & WithMode(ClusterMode value)
CreateClusterRequest & WithTagList(TagListT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector