AWS SDK for C++  1.8.95
AWS SDK for C++
InitializeClusterRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace CloudHSMV2
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "InitializeCluster"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35 
36 
41  inline const Aws::String& GetClusterId() const{ return m_clusterId; }
42 
47  inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
48 
53  inline void SetClusterId(const Aws::String& value) { m_clusterIdHasBeenSet = true; m_clusterId = value; }
54 
59  inline void SetClusterId(Aws::String&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::move(value); }
60 
65  inline void SetClusterId(const char* value) { m_clusterIdHasBeenSet = true; m_clusterId.assign(value); }
66 
71  inline InitializeClusterRequest& WithClusterId(const Aws::String& value) { SetClusterId(value); return *this;}
72 
77  inline InitializeClusterRequest& WithClusterId(Aws::String&& value) { SetClusterId(std::move(value)); return *this;}
78 
83  inline InitializeClusterRequest& WithClusterId(const char* value) { SetClusterId(value); return *this;}
84 
85 
91  inline const Aws::String& GetSignedCert() const{ return m_signedCert; }
92 
98  inline bool SignedCertHasBeenSet() const { return m_signedCertHasBeenSet; }
99 
105  inline void SetSignedCert(const Aws::String& value) { m_signedCertHasBeenSet = true; m_signedCert = value; }
106 
112  inline void SetSignedCert(Aws::String&& value) { m_signedCertHasBeenSet = true; m_signedCert = std::move(value); }
113 
119  inline void SetSignedCert(const char* value) { m_signedCertHasBeenSet = true; m_signedCert.assign(value); }
120 
126  inline InitializeClusterRequest& WithSignedCert(const Aws::String& value) { SetSignedCert(value); return *this;}
127 
133  inline InitializeClusterRequest& WithSignedCert(Aws::String&& value) { SetSignedCert(std::move(value)); return *this;}
134 
140  inline InitializeClusterRequest& WithSignedCert(const char* value) { SetSignedCert(value); return *this;}
141 
142 
150  inline const Aws::String& GetTrustAnchor() const{ return m_trustAnchor; }
151 
159  inline bool TrustAnchorHasBeenSet() const { return m_trustAnchorHasBeenSet; }
160 
168  inline void SetTrustAnchor(const Aws::String& value) { m_trustAnchorHasBeenSet = true; m_trustAnchor = value; }
169 
177  inline void SetTrustAnchor(Aws::String&& value) { m_trustAnchorHasBeenSet = true; m_trustAnchor = std::move(value); }
178 
186  inline void SetTrustAnchor(const char* value) { m_trustAnchorHasBeenSet = true; m_trustAnchor.assign(value); }
187 
195  inline InitializeClusterRequest& WithTrustAnchor(const Aws::String& value) { SetTrustAnchor(value); return *this;}
196 
204  inline InitializeClusterRequest& WithTrustAnchor(Aws::String&& value) { SetTrustAnchor(std::move(value)); return *this;}
205 
213  inline InitializeClusterRequest& WithTrustAnchor(const char* value) { SetTrustAnchor(value); return *this;}
214 
215  private:
216 
217  Aws::String m_clusterId;
218  bool m_clusterIdHasBeenSet;
219 
220  Aws::String m_signedCert;
221  bool m_signedCertHasBeenSet;
222 
223  Aws::String m_trustAnchor;
224  bool m_trustAnchorHasBeenSet;
225  };
226 
227 } // namespace Model
228 } // namespace CloudHSMV2
229 } // namespace Aws
#define AWS_CLOUDHSMV2_API
InitializeClusterRequest & WithTrustAnchor(Aws::String &&value)
InitializeClusterRequest & WithSignedCert(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
InitializeClusterRequest & WithTrustAnchor(const char *value)
InitializeClusterRequest & WithClusterId(const char *value)
InitializeClusterRequest & WithClusterId(Aws::String &&value)
InitializeClusterRequest & WithTrustAnchor(const Aws::String &value)
InitializeClusterRequest & WithSignedCert(Aws::String &&value)
InitializeClusterRequest & WithSignedCert(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
InitializeClusterRequest & WithClusterId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override