AWS SDK for C++  1.9.72
AWS SDK for C++
ModifyVpcAttributeRequest.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>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace EC2
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "ModifyVpcAttribute"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
47  inline const AttributeBooleanValue& GetEnableDnsHostnames() const{ return m_enableDnsHostnames; }
48 
56  inline bool EnableDnsHostnamesHasBeenSet() const { return m_enableDnsHostnamesHasBeenSet; }
57 
65  inline void SetEnableDnsHostnames(const AttributeBooleanValue& value) { m_enableDnsHostnamesHasBeenSet = true; m_enableDnsHostnames = value; }
66 
74  inline void SetEnableDnsHostnames(AttributeBooleanValue&& value) { m_enableDnsHostnamesHasBeenSet = true; m_enableDnsHostnames = std::move(value); }
75 
83  inline ModifyVpcAttributeRequest& WithEnableDnsHostnames(const AttributeBooleanValue& value) { SetEnableDnsHostnames(value); return *this;}
84 
92  inline ModifyVpcAttributeRequest& WithEnableDnsHostnames(AttributeBooleanValue&& value) { SetEnableDnsHostnames(std::move(value)); return *this;}
93 
94 
104  inline const AttributeBooleanValue& GetEnableDnsSupport() const{ return m_enableDnsSupport; }
105 
115  inline bool EnableDnsSupportHasBeenSet() const { return m_enableDnsSupportHasBeenSet; }
116 
126  inline void SetEnableDnsSupport(const AttributeBooleanValue& value) { m_enableDnsSupportHasBeenSet = true; m_enableDnsSupport = value; }
127 
137  inline void SetEnableDnsSupport(AttributeBooleanValue&& value) { m_enableDnsSupportHasBeenSet = true; m_enableDnsSupport = std::move(value); }
138 
148  inline ModifyVpcAttributeRequest& WithEnableDnsSupport(const AttributeBooleanValue& value) { SetEnableDnsSupport(value); return *this;}
149 
159  inline ModifyVpcAttributeRequest& WithEnableDnsSupport(AttributeBooleanValue&& value) { SetEnableDnsSupport(std::move(value)); return *this;}
160 
161 
165  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
166 
170  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
171 
175  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
176 
180  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
181 
185  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
186 
190  inline ModifyVpcAttributeRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
191 
195  inline ModifyVpcAttributeRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
196 
200  inline ModifyVpcAttributeRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
201 
202  private:
203 
204  AttributeBooleanValue m_enableDnsHostnames;
205  bool m_enableDnsHostnamesHasBeenSet;
206 
207  AttributeBooleanValue m_enableDnsSupport;
208  bool m_enableDnsSupportHasBeenSet;
209 
210  Aws::String m_vpcId;
211  bool m_vpcIdHasBeenSet;
212  };
213 
214 } // namespace Model
215 } // namespace EC2
216 } // namespace Aws
AttributeBooleanValue.h
Aws::EC2::Model::ModifyVpcAttributeRequest::SetEnableDnsHostnames
void SetEnableDnsHostnames(const AttributeBooleanValue &value)
Definition: ModifyVpcAttributeRequest.h:65
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ModifyVpcAttributeRequest::GetEnableDnsSupport
const AttributeBooleanValue & GetEnableDnsSupport() const
Definition: ModifyVpcAttributeRequest.h:104
Aws::EC2::Model::ModifyVpcAttributeRequest::VpcIdHasBeenSet
bool VpcIdHasBeenSet() const
Definition: ModifyVpcAttributeRequest.h:170
Aws::EC2::Model::ModifyVpcAttributeRequest
Definition: ModifyVpcAttributeRequest.h:23
Aws::EC2::Model::ModifyVpcAttributeRequest::WithEnableDnsHostnames
ModifyVpcAttributeRequest & WithEnableDnsHostnames(AttributeBooleanValue &&value)
Definition: ModifyVpcAttributeRequest.h:92
Aws::EC2::Model::ModifyVpcAttributeRequest::GetVpcId
const Aws::String & GetVpcId() const
Definition: ModifyVpcAttributeRequest.h:165
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ModifyVpcAttributeRequest::GetEnableDnsHostnames
const AttributeBooleanValue & GetEnableDnsHostnames() const
Definition: ModifyVpcAttributeRequest.h:47
Aws::EC2::Model::ModifyVpcAttributeRequest::SetVpcId
void SetVpcId(Aws::String &&value)
Definition: ModifyVpcAttributeRequest.h:180
Aws::EC2::Model::ModifyVpcAttributeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyVpcAttributeRequest.h:31
Aws::EC2::Model::ModifyVpcAttributeRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::ModifyVpcAttributeRequest::ModifyVpcAttributeRequest
ModifyVpcAttributeRequest()
Aws::EC2::Model::ModifyVpcAttributeRequest::EnableDnsHostnamesHasBeenSet
bool EnableDnsHostnamesHasBeenSet() const
Definition: ModifyVpcAttributeRequest.h:56
Aws::EC2::Model::ModifyVpcAttributeRequest::WithVpcId
ModifyVpcAttributeRequest & WithVpcId(const char *value)
Definition: ModifyVpcAttributeRequest.h:200
Aws::EC2::Model::ModifyVpcAttributeRequest::SetEnableDnsHostnames
void SetEnableDnsHostnames(AttributeBooleanValue &&value)
Definition: ModifyVpcAttributeRequest.h:74
Aws::EC2::Model::ModifyVpcAttributeRequest::EnableDnsSupportHasBeenSet
bool EnableDnsSupportHasBeenSet() const
Definition: ModifyVpcAttributeRequest.h:115
Aws::EC2::Model::ModifyVpcAttributeRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::ModifyVpcAttributeRequest::WithEnableDnsHostnames
ModifyVpcAttributeRequest & WithEnableDnsHostnames(const AttributeBooleanValue &value)
Definition: ModifyVpcAttributeRequest.h:83
EC2Request.h
Aws::EC2::Model::ModifyVpcAttributeRequest::WithEnableDnsSupport
ModifyVpcAttributeRequest & WithEnableDnsSupport(AttributeBooleanValue &&value)
Definition: ModifyVpcAttributeRequest.h:159
AWSString.h
Aws::EC2::Model::ModifyVpcAttributeRequest::SetVpcId
void SetVpcId(const Aws::String &value)
Definition: ModifyVpcAttributeRequest.h:175
Aws::EC2::Model::ModifyVpcAttributeRequest::SetEnableDnsSupport
void SetEnableDnsSupport(const AttributeBooleanValue &value)
Definition: ModifyVpcAttributeRequest.h:126
Aws::EC2::Model::ModifyVpcAttributeRequest::SetVpcId
void SetVpcId(const char *value)
Definition: ModifyVpcAttributeRequest.h:185
Aws::EC2::Model::ModifyVpcAttributeRequest::WithVpcId
ModifyVpcAttributeRequest & WithVpcId(const Aws::String &value)
Definition: ModifyVpcAttributeRequest.h:190
Aws::EC2::Model::AttributeBooleanValue
Definition: AttributeBooleanValue.h:31
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::ModifyVpcAttributeRequest::WithVpcId
ModifyVpcAttributeRequest & WithVpcId(Aws::String &&value)
Definition: ModifyVpcAttributeRequest.h:195
EC2_EXPORTS.h
Aws::EC2::Model::ModifyVpcAttributeRequest::WithEnableDnsSupport
ModifyVpcAttributeRequest & WithEnableDnsSupport(const AttributeBooleanValue &value)
Definition: ModifyVpcAttributeRequest.h:148
Aws::EC2::Model::ModifyVpcAttributeRequest::SetEnableDnsSupport
void SetEnableDnsSupport(AttributeBooleanValue &&value)
Definition: ModifyVpcAttributeRequest.h:137