AWS SDK for C++  1.9.67
AWS SDK for C++
AssociateSubnetCidrBlockRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace EC2
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 "AssociateSubnetCidrBlock"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
43  inline const Aws::String& GetIpv6CidrBlock() const{ return m_ipv6CidrBlock; }
44 
49  inline bool Ipv6CidrBlockHasBeenSet() const { return m_ipv6CidrBlockHasBeenSet; }
50 
55  inline void SetIpv6CidrBlock(const Aws::String& value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock = value; }
56 
61  inline void SetIpv6CidrBlock(Aws::String&& value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock = std::move(value); }
62 
67  inline void SetIpv6CidrBlock(const char* value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock.assign(value); }
68 
73  inline AssociateSubnetCidrBlockRequest& WithIpv6CidrBlock(const Aws::String& value) { SetIpv6CidrBlock(value); return *this;}
74 
79  inline AssociateSubnetCidrBlockRequest& WithIpv6CidrBlock(Aws::String&& value) { SetIpv6CidrBlock(std::move(value)); return *this;}
80 
85  inline AssociateSubnetCidrBlockRequest& WithIpv6CidrBlock(const char* value) { SetIpv6CidrBlock(value); return *this;}
86 
87 
91  inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
92 
96  inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
97 
101  inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
102 
106  inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
107 
111  inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
112 
116  inline AssociateSubnetCidrBlockRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
117 
121  inline AssociateSubnetCidrBlockRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
122 
126  inline AssociateSubnetCidrBlockRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
127 
128  private:
129 
130  Aws::String m_ipv6CidrBlock;
131  bool m_ipv6CidrBlockHasBeenSet;
132 
133  Aws::String m_subnetId;
134  bool m_subnetIdHasBeenSet;
135  };
136 
137 } // namespace Model
138 } // namespace EC2
139 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::AssociateSubnetCidrBlockRequest::SubnetIdHasBeenSet
bool SubnetIdHasBeenSet() const
Definition: AssociateSubnetCidrBlockRequest.h:96
Aws::EC2::Model::AssociateSubnetCidrBlockRequest::SetIpv6CidrBlock
void SetIpv6CidrBlock(Aws::String &&value)
Definition: AssociateSubnetCidrBlockRequest.h:61
Aws::EC2::Model::AssociateSubnetCidrBlockRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::AssociateSubnetCidrBlockRequest::SetSubnetId
void SetSubnetId(const char *value)
Definition: AssociateSubnetCidrBlockRequest.h:111
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::AssociateSubnetCidrBlockRequest::WithIpv6CidrBlock
AssociateSubnetCidrBlockRequest & WithIpv6CidrBlock(const Aws::String &value)
Definition: AssociateSubnetCidrBlockRequest.h:73
Aws::EC2::Model::AssociateSubnetCidrBlockRequest::Ipv6CidrBlockHasBeenSet
bool Ipv6CidrBlockHasBeenSet() const
Definition: AssociateSubnetCidrBlockRequest.h:49
Aws::EC2::Model::AssociateSubnetCidrBlockRequest::WithSubnetId
AssociateSubnetCidrBlockRequest & WithSubnetId(const char *value)
Definition: AssociateSubnetCidrBlockRequest.h:126
Aws::EC2::Model::AssociateSubnetCidrBlockRequest::GetIpv6CidrBlock
const Aws::String & GetIpv6CidrBlock() const
Definition: AssociateSubnetCidrBlockRequest.h:43
Aws::EC2::Model::AssociateSubnetCidrBlockRequest::SetSubnetId
void SetSubnetId(Aws::String &&value)
Definition: AssociateSubnetCidrBlockRequest.h:106
Aws::EC2::Model::AssociateSubnetCidrBlockRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AssociateSubnetCidrBlockRequest.h:30
Aws::EC2::Model::AssociateSubnetCidrBlockRequest::SetIpv6CidrBlock
void SetIpv6CidrBlock(const char *value)
Definition: AssociateSubnetCidrBlockRequest.h:67
Aws::EC2::Model::AssociateSubnetCidrBlockRequest::WithSubnetId
AssociateSubnetCidrBlockRequest & WithSubnetId(const Aws::String &value)
Definition: AssociateSubnetCidrBlockRequest.h:116
EC2Request.h
Aws::EC2::Model::AssociateSubnetCidrBlockRequest::WithIpv6CidrBlock
AssociateSubnetCidrBlockRequest & WithIpv6CidrBlock(Aws::String &&value)
Definition: AssociateSubnetCidrBlockRequest.h:79
Aws::EC2::Model::AssociateSubnetCidrBlockRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::AssociateSubnetCidrBlockRequest::WithIpv6CidrBlock
AssociateSubnetCidrBlockRequest & WithIpv6CidrBlock(const char *value)
Definition: AssociateSubnetCidrBlockRequest.h:85
AWSString.h
Aws::EC2::Model::AssociateSubnetCidrBlockRequest::SetSubnetId
void SetSubnetId(const Aws::String &value)
Definition: AssociateSubnetCidrBlockRequest.h:101
Aws::EC2::Model::AssociateSubnetCidrBlockRequest::SetIpv6CidrBlock
void SetIpv6CidrBlock(const Aws::String &value)
Definition: AssociateSubnetCidrBlockRequest.h:55
Aws::EC2::Model::AssociateSubnetCidrBlockRequest
Definition: AssociateSubnetCidrBlockRequest.h:22
Aws::EC2::Model::AssociateSubnetCidrBlockRequest::GetSubnetId
const Aws::String & GetSubnetId() const
Definition: AssociateSubnetCidrBlockRequest.h:91
Aws::EC2::Model::AssociateSubnetCidrBlockRequest::AssociateSubnetCidrBlockRequest
AssociateSubnetCidrBlockRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::AssociateSubnetCidrBlockRequest::WithSubnetId
AssociateSubnetCidrBlockRequest & WithSubnetId(Aws::String &&value)
Definition: AssociateSubnetCidrBlockRequest.h:121
EC2_EXPORTS.h