AWS SDK for C++  1.8.95
AWS SDK for C++
CreateHsmRequest.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 "CreateHsm"; }
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 CreateHsmRequest& WithClusterId(const Aws::String& value) { SetClusterId(value); return *this;}
72 
77  inline CreateHsmRequest& WithClusterId(Aws::String&& value) { SetClusterId(std::move(value)); return *this;}
78 
83  inline CreateHsmRequest& WithClusterId(const char* value) { SetClusterId(value); return *this;}
84 
85 
90  inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
91 
96  inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
97 
102  inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
103 
108  inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
109 
114  inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
115 
120  inline CreateHsmRequest& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
121 
126  inline CreateHsmRequest& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
127 
132  inline CreateHsmRequest& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
133 
134 
141  inline const Aws::String& GetIpAddress() const{ return m_ipAddress; }
142 
149  inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
150 
157  inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
158 
165  inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); }
166 
173  inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
174 
181  inline CreateHsmRequest& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
182 
189  inline CreateHsmRequest& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;}
190 
197  inline CreateHsmRequest& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
198 
199  private:
200 
201  Aws::String m_clusterId;
202  bool m_clusterIdHasBeenSet;
203 
204  Aws::String m_availabilityZone;
205  bool m_availabilityZoneHasBeenSet;
206 
207  Aws::String m_ipAddress;
208  bool m_ipAddressHasBeenSet;
209  };
210 
211 } // namespace Model
212 } // namespace CloudHSMV2
213 } // namespace Aws
CreateHsmRequest & WithIpAddress(const char *value)
#define AWS_CLOUDHSMV2_API
void SetAvailabilityZone(Aws::String &&value)
CreateHsmRequest & WithIpAddress(Aws::String &&value)
const Aws::String & GetIpAddress() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
virtual const char * GetServiceRequestName() const override
void SetAvailabilityZone(const Aws::String &value)
CreateHsmRequest & WithClusterId(const Aws::String &value)
CreateHsmRequest & WithClusterId(const char *value)
void SetIpAddress(const Aws::String &value)
CreateHsmRequest & WithAvailabilityZone(Aws::String &&value)
const Aws::String & GetAvailabilityZone() const
CreateHsmRequest & WithAvailabilityZone(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetClusterId(const Aws::String &value)
void SetClusterId(Aws::String &&value)
CreateHsmRequest & WithIpAddress(const Aws::String &value)
const Aws::String & GetClusterId() const
CreateHsmRequest & WithClusterId(Aws::String &&value)
CreateHsmRequest & WithAvailabilityZone(const Aws::String &value)