AWS SDK for C++  1.8.95
AWS SDK for C++
CreateClusterRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace CloudHSMV2
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreateCluster"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
39 
43  inline const BackupRetentionPolicy& GetBackupRetentionPolicy() const{ return m_backupRetentionPolicy; }
44 
48  inline bool BackupRetentionPolicyHasBeenSet() const { return m_backupRetentionPolicyHasBeenSet; }
49 
53  inline void SetBackupRetentionPolicy(const BackupRetentionPolicy& value) { m_backupRetentionPolicyHasBeenSet = true; m_backupRetentionPolicy = value; }
54 
58  inline void SetBackupRetentionPolicy(BackupRetentionPolicy&& value) { m_backupRetentionPolicyHasBeenSet = true; m_backupRetentionPolicy = std::move(value); }
59 
63  inline CreateClusterRequest& WithBackupRetentionPolicy(const BackupRetentionPolicy& value) { SetBackupRetentionPolicy(value); return *this;}
64 
68  inline CreateClusterRequest& WithBackupRetentionPolicy(BackupRetentionPolicy&& value) { SetBackupRetentionPolicy(std::move(value)); return *this;}
69 
70 
75  inline const Aws::String& GetHsmType() const{ return m_hsmType; }
76 
81  inline bool HsmTypeHasBeenSet() const { return m_hsmTypeHasBeenSet; }
82 
87  inline void SetHsmType(const Aws::String& value) { m_hsmTypeHasBeenSet = true; m_hsmType = value; }
88 
93  inline void SetHsmType(Aws::String&& value) { m_hsmTypeHasBeenSet = true; m_hsmType = std::move(value); }
94 
99  inline void SetHsmType(const char* value) { m_hsmTypeHasBeenSet = true; m_hsmType.assign(value); }
100 
105  inline CreateClusterRequest& WithHsmType(const Aws::String& value) { SetHsmType(value); return *this;}
106 
111  inline CreateClusterRequest& WithHsmType(Aws::String&& value) { SetHsmType(std::move(value)); return *this;}
112 
117  inline CreateClusterRequest& WithHsmType(const char* value) { SetHsmType(value); return *this;}
118 
119 
125  inline const Aws::String& GetSourceBackupId() const{ return m_sourceBackupId; }
126 
132  inline bool SourceBackupIdHasBeenSet() const { return m_sourceBackupIdHasBeenSet; }
133 
139  inline void SetSourceBackupId(const Aws::String& value) { m_sourceBackupIdHasBeenSet = true; m_sourceBackupId = value; }
140 
146  inline void SetSourceBackupId(Aws::String&& value) { m_sourceBackupIdHasBeenSet = true; m_sourceBackupId = std::move(value); }
147 
153  inline void SetSourceBackupId(const char* value) { m_sourceBackupIdHasBeenSet = true; m_sourceBackupId.assign(value); }
154 
160  inline CreateClusterRequest& WithSourceBackupId(const Aws::String& value) { SetSourceBackupId(value); return *this;}
161 
167  inline CreateClusterRequest& WithSourceBackupId(Aws::String&& value) { SetSourceBackupId(std::move(value)); return *this;}
168 
174  inline CreateClusterRequest& WithSourceBackupId(const char* value) { SetSourceBackupId(value); return *this;}
175 
176 
184  inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
185 
193  inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
194 
202  inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
203 
211  inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
212 
220  inline CreateClusterRequest& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
221 
229  inline CreateClusterRequest& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
230 
238  inline CreateClusterRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
239 
247  inline CreateClusterRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
248 
256  inline CreateClusterRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
257 
258 
262  inline const Aws::Vector<Tag>& GetTagList() const{ return m_tagList; }
263 
267  inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
268 
272  inline void SetTagList(const Aws::Vector<Tag>& value) { m_tagListHasBeenSet = true; m_tagList = value; }
273 
277  inline void SetTagList(Aws::Vector<Tag>&& value) { m_tagListHasBeenSet = true; m_tagList = std::move(value); }
278 
282  inline CreateClusterRequest& WithTagList(const Aws::Vector<Tag>& value) { SetTagList(value); return *this;}
283 
287  inline CreateClusterRequest& WithTagList(Aws::Vector<Tag>&& value) { SetTagList(std::move(value)); return *this;}
288 
292  inline CreateClusterRequest& AddTagList(const Tag& value) { m_tagListHasBeenSet = true; m_tagList.push_back(value); return *this; }
293 
297  inline CreateClusterRequest& AddTagList(Tag&& value) { m_tagListHasBeenSet = true; m_tagList.push_back(std::move(value)); return *this; }
298 
299  private:
300 
301  BackupRetentionPolicy m_backupRetentionPolicy;
302  bool m_backupRetentionPolicyHasBeenSet;
303 
304  Aws::String m_hsmType;
305  bool m_hsmTypeHasBeenSet;
306 
307  Aws::String m_sourceBackupId;
308  bool m_sourceBackupIdHasBeenSet;
309 
310  Aws::Vector<Aws::String> m_subnetIds;
311  bool m_subnetIdsHasBeenSet;
312 
313  Aws::Vector<Tag> m_tagList;
314  bool m_tagListHasBeenSet;
315  };
316 
317 } // namespace Model
318 } // namespace CloudHSMV2
319 } // namespace Aws
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
#define AWS_CLOUDHSMV2_API
const BackupRetentionPolicy & GetBackupRetentionPolicy() const
CreateClusterRequest & WithHsmType(const Aws::String &value)
void SetTagList(Aws::Vector< Tag > &&value)
CreateClusterRequest & WithBackupRetentionPolicy(BackupRetentionPolicy &&value)
CreateClusterRequest & AddTagList(const Tag &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
CreateClusterRequest & AddSubnetIds(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
CreateClusterRequest & AddSubnetIds(Aws::String &&value)
CreateClusterRequest & AddSubnetIds(const Aws::String &value)
void SetBackupRetentionPolicy(BackupRetentionPolicy &&value)
CreateClusterRequest & WithSourceBackupId(const char *value)
void SetSourceBackupId(const Aws::String &value)
CreateClusterRequest & WithHsmType(const char *value)
CreateClusterRequest & WithHsmType(Aws::String &&value)
CreateClusterRequest & WithTagList(const Aws::Vector< Tag > &value)
CreateClusterRequest & WithBackupRetentionPolicy(const BackupRetentionPolicy &value)
virtual const char * GetServiceRequestName() const override
CreateClusterRequest & WithSubnetIds(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
const Aws::Vector< Tag > & GetTagList() const
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetTagList(const Aws::Vector< Tag > &value)
CreateClusterRequest & WithTagList(Aws::Vector< Tag > &&value)
CreateClusterRequest & AddTagList(Tag &&value)
void SetBackupRetentionPolicy(const BackupRetentionPolicy &value)
CreateClusterRequest & WithSourceBackupId(Aws::String &&value)
CreateClusterRequest & WithSourceBackupId(const Aws::String &value)
CreateClusterRequest & WithSubnetIds(Aws::Vector< Aws::String > &&value)