AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateDefaultSubnetRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace EC2 {
15namespace Model {
16
20 public:
21 AWS_EC2_API CreateDefaultSubnetRequest() = 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 "CreateDefaultSubnet"; }
28
29 AWS_EC2_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
41 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
42 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
43 template <typename AvailabilityZoneT = Aws::String>
44 void SetAvailabilityZone(AvailabilityZoneT&& value) {
45 m_availabilityZoneHasBeenSet = true;
46 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
47 }
48 template <typename AvailabilityZoneT = Aws::String>
50 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
51 return *this;
52 }
54
56
62 inline bool GetDryRun() const { return m_dryRun; }
63 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
64 inline void SetDryRun(bool value) {
65 m_dryRunHasBeenSet = true;
66 m_dryRun = value;
67 }
69 SetDryRun(value);
70 return *this;
71 }
73
75
80 inline bool GetIpv6Native() const { return m_ipv6Native; }
81 inline bool Ipv6NativeHasBeenSet() const { return m_ipv6NativeHasBeenSet; }
82 inline void SetIpv6Native(bool value) {
83 m_ipv6NativeHasBeenSet = true;
84 m_ipv6Native = value;
85 }
87 SetIpv6Native(value);
88 return *this;
89 }
91
93
97 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
98 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
99 template <typename AvailabilityZoneIdT = Aws::String>
100 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) {
101 m_availabilityZoneIdHasBeenSet = true;
102 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
103 }
104 template <typename AvailabilityZoneIdT = Aws::String>
106 SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value));
107 return *this;
108 }
110 private:
111 Aws::String m_availabilityZone;
112
113 bool m_dryRun{false};
114
115 bool m_ipv6Native{false};
116
117 Aws::String m_availabilityZoneId;
118 bool m_availabilityZoneHasBeenSet = false;
119 bool m_dryRunHasBeenSet = false;
120 bool m_ipv6NativeHasBeenSet = false;
121 bool m_availabilityZoneIdHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace EC2
126} // namespace Aws
CreateDefaultSubnetRequest & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
void SetAvailabilityZoneId(AvailabilityZoneIdT &&value)
CreateDefaultSubnetRequest & WithIpv6Native(bool value)
virtual const char * GetServiceRequestName() const override
CreateDefaultSubnetRequest & WithAvailabilityZone(AvailabilityZoneT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API CreateDefaultSubnetRequest()=default
CreateDefaultSubnetRequest & WithDryRun(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String