AWS SDK for C++

AWS SDK for C++ Version 1.11.937

Loading...
Searching...
No Matches
CreateHsmRequest.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 CreateHsmRequest() = 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 "CreateHsm"; }
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>
46 CreateHsmRequest& WithClusterId(ClusterIdT&& value) {
47 SetClusterId(std::forward<ClusterIdT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
58 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
59 template <typename AvailabilityZoneT = Aws::String>
60 void SetAvailabilityZone(AvailabilityZoneT&& value) {
61 m_availabilityZoneHasBeenSet = true;
62 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
63 }
64 template <typename AvailabilityZoneT = Aws::String>
65 CreateHsmRequest& WithAvailabilityZone(AvailabilityZoneT&& value) {
66 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
67 return *this;
68 }
70
72
78 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
79 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
80 template <typename IpAddressT = Aws::String>
81 void SetIpAddress(IpAddressT&& value) {
82 m_ipAddressHasBeenSet = true;
83 m_ipAddress = std::forward<IpAddressT>(value);
84 }
85 template <typename IpAddressT = Aws::String>
86 CreateHsmRequest& WithIpAddress(IpAddressT&& value) {
87 SetIpAddress(std::forward<IpAddressT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_clusterId;
93
94 Aws::String m_availabilityZone;
95
96 Aws::String m_ipAddress;
97 bool m_clusterIdHasBeenSet = false;
98 bool m_availabilityZoneHasBeenSet = false;
99 bool m_ipAddressHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace CloudHSMV2
104} // namespace Aws
CreateHsmRequest & WithClusterId(ClusterIdT &&value)
const Aws::String & GetClusterId() const
CreateHsmRequest & WithAvailabilityZone(AvailabilityZoneT &&value)
void SetAvailabilityZone(AvailabilityZoneT &&value)
CreateHsmRequest & WithIpAddress(IpAddressT &&value)
const Aws::String & GetIpAddress() const
AWS_CLOUDHSMV2_API Aws::String SerializePayload() const override
AWS_CLOUDHSMV2_API CreateHsmRequest()=default
const Aws::String & GetAvailabilityZone() const
AWS_CLOUDHSMV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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