AWS SDK for C++

AWS SDK for C++ Version 1.11.937

Loading...
Searching...
No Matches
ModifyClusterRequest.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/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CloudHSMV2 {
16namespace Model {
17
21 public:
22 AWS_CLOUDHSMV2_API ModifyClusterRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ModifyCluster"; }
29
30 AWS_CLOUDHSMV2_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetHsmType() const { return m_hsmType; }
39 inline bool HsmTypeHasBeenSet() const { return m_hsmTypeHasBeenSet; }
40 template <typename HsmTypeT = Aws::String>
41 void SetHsmType(HsmTypeT&& value) {
42 m_hsmTypeHasBeenSet = true;
43 m_hsmType = std::forward<HsmTypeT>(value);
44 }
45 template <typename HsmTypeT = Aws::String>
46 ModifyClusterRequest& WithHsmType(HsmTypeT&& value) {
47 SetHsmType(std::forward<HsmTypeT>(value));
48 return *this;
49 }
51
53
56 inline const BackupRetentionPolicy& GetBackupRetentionPolicy() const { return m_backupRetentionPolicy; }
57 inline bool BackupRetentionPolicyHasBeenSet() const { return m_backupRetentionPolicyHasBeenSet; }
58 template <typename BackupRetentionPolicyT = BackupRetentionPolicy>
59 void SetBackupRetentionPolicy(BackupRetentionPolicyT&& value) {
60 m_backupRetentionPolicyHasBeenSet = true;
61 m_backupRetentionPolicy = std::forward<BackupRetentionPolicyT>(value);
62 }
63 template <typename BackupRetentionPolicyT = BackupRetentionPolicy>
64 ModifyClusterRequest& WithBackupRetentionPolicy(BackupRetentionPolicyT&& value) {
65 SetBackupRetentionPolicy(std::forward<BackupRetentionPolicyT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::String& GetClusterId() const { return m_clusterId; }
76 inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
77 template <typename ClusterIdT = Aws::String>
78 void SetClusterId(ClusterIdT&& value) {
79 m_clusterIdHasBeenSet = true;
80 m_clusterId = std::forward<ClusterIdT>(value);
81 }
82 template <typename ClusterIdT = Aws::String>
83 ModifyClusterRequest& WithClusterId(ClusterIdT&& value) {
84 SetClusterId(std::forward<ClusterIdT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_hsmType;
90
91 BackupRetentionPolicy m_backupRetentionPolicy;
92
93 Aws::String m_clusterId;
94 bool m_hsmTypeHasBeenSet = false;
95 bool m_backupRetentionPolicyHasBeenSet = false;
96 bool m_clusterIdHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace CloudHSMV2
101} // namespace Aws
ModifyClusterRequest & WithClusterId(ClusterIdT &&value)
const BackupRetentionPolicy & GetBackupRetentionPolicy() const
AWS_CLOUDHSMV2_API Aws::String SerializePayload() const override
ModifyClusterRequest & WithBackupRetentionPolicy(BackupRetentionPolicyT &&value)
AWS_CLOUDHSMV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CLOUDHSMV2_API ModifyClusterRequest()=default
ModifyClusterRequest & WithHsmType(HsmTypeT &&value)
void SetBackupRetentionPolicy(BackupRetentionPolicyT &&value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String