AWS SDK for C++

AWS SDK for C++ Version 1.11.937

Loading...
Searching...
No Matches
InitializeClusterRequest.h
1
6#pragma once
7#include <aws/cloudhsmv2/CloudHSMV2Request.h>
8#include <aws/cloudhsmv2/CloudHSMV2_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace CloudHSMV2 {
15namespace Model {
16
20 public:
21 AWS_CLOUDHSMV2_API InitializeClusterRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "InitializeCluster"; }
28
29 AWS_CLOUDHSMV2_API Aws::String SerializePayload() const override;
30
32
34
38 inline const Aws::String& GetClusterId() const { return m_clusterId; }
39 inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
40 template <typename ClusterIdT = Aws::String>
41 void SetClusterId(ClusterIdT&& value) {
42 m_clusterIdHasBeenSet = true;
43 m_clusterId = std::forward<ClusterIdT>(value);
44 }
45 template <typename ClusterIdT = Aws::String>
47 SetClusterId(std::forward<ClusterIdT>(value));
48 return *this;
49 }
51
53
58 inline const Aws::String& GetSignedCert() const { return m_signedCert; }
59 inline bool SignedCertHasBeenSet() const { return m_signedCertHasBeenSet; }
60 template <typename SignedCertT = Aws::String>
61 void SetSignedCert(SignedCertT&& value) {
62 m_signedCertHasBeenSet = true;
63 m_signedCert = std::forward<SignedCertT>(value);
64 }
65 template <typename SignedCertT = Aws::String>
67 SetSignedCert(std::forward<SignedCertT>(value));
68 return *this;
69 }
71
73
80 inline const Aws::String& GetTrustAnchor() const { return m_trustAnchor; }
81 inline bool TrustAnchorHasBeenSet() const { return m_trustAnchorHasBeenSet; }
82 template <typename TrustAnchorT = Aws::String>
83 void SetTrustAnchor(TrustAnchorT&& value) {
84 m_trustAnchorHasBeenSet = true;
85 m_trustAnchor = std::forward<TrustAnchorT>(value);
86 }
87 template <typename TrustAnchorT = Aws::String>
89 SetTrustAnchor(std::forward<TrustAnchorT>(value));
90 return *this;
91 }
93 private:
94 Aws::String m_clusterId;
95
96 Aws::String m_signedCert;
97
98 Aws::String m_trustAnchor;
99 bool m_clusterIdHasBeenSet = false;
100 bool m_signedCertHasBeenSet = false;
101 bool m_trustAnchorHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace CloudHSMV2
106} // namespace Aws
InitializeClusterRequest & WithSignedCert(SignedCertT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CLOUDHSMV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
InitializeClusterRequest & WithClusterId(ClusterIdT &&value)
InitializeClusterRequest & WithTrustAnchor(TrustAnchorT &&value)
AWS_CLOUDHSMV2_API InitializeClusterRequest()=default
AWS_CLOUDHSMV2_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String