AWS SDK for C++  1.9.65
AWS SDK for C++
AssociateDhcpOptionsRequest.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 "AssociateDhcpOptions"; }
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& GetDhcpOptionsId() const{ return m_dhcpOptionsId; }
44 
49  inline bool DhcpOptionsIdHasBeenSet() const { return m_dhcpOptionsIdHasBeenSet; }
50 
55  inline void SetDhcpOptionsId(const Aws::String& value) { m_dhcpOptionsIdHasBeenSet = true; m_dhcpOptionsId = value; }
56 
61  inline void SetDhcpOptionsId(Aws::String&& value) { m_dhcpOptionsIdHasBeenSet = true; m_dhcpOptionsId = std::move(value); }
62 
67  inline void SetDhcpOptionsId(const char* value) { m_dhcpOptionsIdHasBeenSet = true; m_dhcpOptionsId.assign(value); }
68 
73  inline AssociateDhcpOptionsRequest& WithDhcpOptionsId(const Aws::String& value) { SetDhcpOptionsId(value); return *this;}
74 
79  inline AssociateDhcpOptionsRequest& WithDhcpOptionsId(Aws::String&& value) { SetDhcpOptionsId(std::move(value)); return *this;}
80 
85  inline AssociateDhcpOptionsRequest& WithDhcpOptionsId(const char* value) { SetDhcpOptionsId(value); return *this;}
86 
87 
91  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
92 
96  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
97 
101  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
102 
106  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
107 
111  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
112 
116  inline AssociateDhcpOptionsRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
117 
121  inline AssociateDhcpOptionsRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
122 
126  inline AssociateDhcpOptionsRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
127 
128 
135  inline bool GetDryRun() const{ return m_dryRun; }
136 
143  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
144 
151  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
152 
159  inline AssociateDhcpOptionsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
160 
161  private:
162 
163  Aws::String m_dhcpOptionsId;
164  bool m_dhcpOptionsIdHasBeenSet;
165 
166  Aws::String m_vpcId;
167  bool m_vpcIdHasBeenSet;
168 
169  bool m_dryRun;
170  bool m_dryRunHasBeenSet;
171  };
172 
173 } // namespace Model
174 } // namespace EC2
175 } // namespace Aws
Aws::EC2::Model::AssociateDhcpOptionsRequest::DhcpOptionsIdHasBeenSet
bool DhcpOptionsIdHasBeenSet() const
Definition: AssociateDhcpOptionsRequest.h:49
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::AssociateDhcpOptionsRequest::SetVpcId
void SetVpcId(const char *value)
Definition: AssociateDhcpOptionsRequest.h:111
Aws::EC2::Model::AssociateDhcpOptionsRequest::SetDryRun
void SetDryRun(bool value)
Definition: AssociateDhcpOptionsRequest.h:151
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::AssociateDhcpOptionsRequest::GetDryRun
bool GetDryRun() const
Definition: AssociateDhcpOptionsRequest.h:135
Aws::EC2::Model::AssociateDhcpOptionsRequest::WithDhcpOptionsId
AssociateDhcpOptionsRequest & WithDhcpOptionsId(const char *value)
Definition: AssociateDhcpOptionsRequest.h:85
Aws::EC2::Model::AssociateDhcpOptionsRequest
Definition: AssociateDhcpOptionsRequest.h:22
Aws::EC2::Model::AssociateDhcpOptionsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: AssociateDhcpOptionsRequest.h:143
EC2Request.h
Aws::EC2::Model::AssociateDhcpOptionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AssociateDhcpOptionsRequest.h:30
AWSString.h
Aws::EC2::Model::AssociateDhcpOptionsRequest::GetVpcId
const Aws::String & GetVpcId() const
Definition: AssociateDhcpOptionsRequest.h:91
Aws::EC2::Model::AssociateDhcpOptionsRequest::SetVpcId
void SetVpcId(Aws::String &&value)
Definition: AssociateDhcpOptionsRequest.h:106
Aws::EC2::Model::AssociateDhcpOptionsRequest::SetDhcpOptionsId
void SetDhcpOptionsId(const Aws::String &value)
Definition: AssociateDhcpOptionsRequest.h:55
Aws::EC2::Model::AssociateDhcpOptionsRequest::SetDhcpOptionsId
void SetDhcpOptionsId(const char *value)
Definition: AssociateDhcpOptionsRequest.h:67
Aws::EC2::Model::AssociateDhcpOptionsRequest::WithDhcpOptionsId
AssociateDhcpOptionsRequest & WithDhcpOptionsId(const Aws::String &value)
Definition: AssociateDhcpOptionsRequest.h:73
Aws::EC2::Model::AssociateDhcpOptionsRequest::WithDryRun
AssociateDhcpOptionsRequest & WithDryRun(bool value)
Definition: AssociateDhcpOptionsRequest.h:159
Aws::EC2::Model::AssociateDhcpOptionsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::AssociateDhcpOptionsRequest::WithVpcId
AssociateDhcpOptionsRequest & WithVpcId(const Aws::String &value)
Definition: AssociateDhcpOptionsRequest.h:116
Aws::EC2::Model::AssociateDhcpOptionsRequest::SetDhcpOptionsId
void SetDhcpOptionsId(Aws::String &&value)
Definition: AssociateDhcpOptionsRequest.h:61
Aws::EC2::Model::AssociateDhcpOptionsRequest::WithVpcId
AssociateDhcpOptionsRequest & WithVpcId(const char *value)
Definition: AssociateDhcpOptionsRequest.h:126
Aws::EC2::Model::AssociateDhcpOptionsRequest::SetVpcId
void SetVpcId(const Aws::String &value)
Definition: AssociateDhcpOptionsRequest.h:101
Aws::EC2::Model::AssociateDhcpOptionsRequest::SerializePayload
Aws::String SerializePayload() const override
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::AssociateDhcpOptionsRequest::GetDhcpOptionsId
const Aws::String & GetDhcpOptionsId() const
Definition: AssociateDhcpOptionsRequest.h:43
Aws::EC2::Model::AssociateDhcpOptionsRequest::VpcIdHasBeenSet
bool VpcIdHasBeenSet() const
Definition: AssociateDhcpOptionsRequest.h:96
Aws::EC2::Model::AssociateDhcpOptionsRequest::WithDhcpOptionsId
AssociateDhcpOptionsRequest & WithDhcpOptionsId(Aws::String &&value)
Definition: AssociateDhcpOptionsRequest.h:79
EC2_EXPORTS.h
Aws::EC2::Model::AssociateDhcpOptionsRequest::WithVpcId
AssociateDhcpOptionsRequest & WithVpcId(Aws::String &&value)
Definition: AssociateDhcpOptionsRequest.h:121
Aws::EC2::Model::AssociateDhcpOptionsRequest::AssociateDhcpOptionsRequest
AssociateDhcpOptionsRequest()