AWS SDK for C++  0.12.9
AWS SDK for C++
ModifyVpcAttributeRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ec2/EC2_EXPORTS.h>
17 #include <aws/ec2/EC2Request.h>
20 
21 namespace Aws
22 {
23 namespace EC2
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
40  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
41 
45  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
46 
50  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
51 
55  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
56 
60  inline ModifyVpcAttributeRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
61 
65  inline ModifyVpcAttributeRequest& WithVpcId(Aws::String&& value) { SetVpcId(value); return *this;}
66 
70  inline ModifyVpcAttributeRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
71 
81  inline const AttributeBooleanValue& GetEnableDnsSupport() const{ return m_enableDnsSupport; }
82 
92  inline void SetEnableDnsSupport(const AttributeBooleanValue& value) { m_enableDnsSupportHasBeenSet = true; m_enableDnsSupport = value; }
93 
103  inline void SetEnableDnsSupport(AttributeBooleanValue&& value) { m_enableDnsSupportHasBeenSet = true; m_enableDnsSupport = value; }
104 
114  inline ModifyVpcAttributeRequest& WithEnableDnsSupport(const AttributeBooleanValue& value) { SetEnableDnsSupport(value); return *this;}
115 
125  inline ModifyVpcAttributeRequest& WithEnableDnsSupport(AttributeBooleanValue&& value) { SetEnableDnsSupport(value); return *this;}
126 
134  inline const AttributeBooleanValue& GetEnableDnsHostnames() const{ return m_enableDnsHostnames; }
135 
143  inline void SetEnableDnsHostnames(const AttributeBooleanValue& value) { m_enableDnsHostnamesHasBeenSet = true; m_enableDnsHostnames = value; }
144 
152  inline void SetEnableDnsHostnames(AttributeBooleanValue&& value) { m_enableDnsHostnamesHasBeenSet = true; m_enableDnsHostnames = value; }
153 
161  inline ModifyVpcAttributeRequest& WithEnableDnsHostnames(const AttributeBooleanValue& value) { SetEnableDnsHostnames(value); return *this;}
162 
170  inline ModifyVpcAttributeRequest& WithEnableDnsHostnames(AttributeBooleanValue&& value) { SetEnableDnsHostnames(value); return *this;}
171 
172  private:
173  Aws::String m_vpcId;
174  bool m_vpcIdHasBeenSet;
175  AttributeBooleanValue m_enableDnsSupport;
176  bool m_enableDnsSupportHasBeenSet;
177  AttributeBooleanValue m_enableDnsHostnames;
178  bool m_enableDnsHostnamesHasBeenSet;
179  };
180 
181 } // namespace Model
182 } // namespace EC2
183 } // namespace Aws
ModifyVpcAttributeRequest & WithEnableDnsHostnames(AttributeBooleanValue &&value)
ModifyVpcAttributeRequest & WithEnableDnsSupport(AttributeBooleanValue &&value)
ModifyVpcAttributeRequest & WithEnableDnsHostnames(const AttributeBooleanValue &value)
void SetEnableDnsSupport(AttributeBooleanValue &&value)
const AttributeBooleanValue & GetEnableDnsHostnames() const
void SetEnableDnsHostnames(AttributeBooleanValue &&value)
ModifyVpcAttributeRequest & WithEnableDnsSupport(const AttributeBooleanValue &value)
const AttributeBooleanValue & GetEnableDnsSupport() const
ModifyVpcAttributeRequest & WithVpcId(const Aws::String &value)
ModifyVpcAttributeRequest & WithVpcId(const char *value)
ModifyVpcAttributeRequest & WithVpcId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetEnableDnsSupport(const AttributeBooleanValue &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
void SetEnableDnsHostnames(const AttributeBooleanValue &value)
JSON (JavaScript Object Notation).