AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyVpcAttributeRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/model/AttributeBooleanValue.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace EC2
16{
17namespace 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_EC2_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
48 inline const AttributeBooleanValue& GetEnableDnsHostnames() const{ return m_enableDnsHostnames; }
49 inline bool EnableDnsHostnamesHasBeenSet() const { return m_enableDnsHostnamesHasBeenSet; }
50 inline void SetEnableDnsHostnames(const AttributeBooleanValue& value) { m_enableDnsHostnamesHasBeenSet = true; m_enableDnsHostnames = value; }
51 inline void SetEnableDnsHostnames(AttributeBooleanValue&& value) { m_enableDnsHostnamesHasBeenSet = true; m_enableDnsHostnames = std::move(value); }
55
57
66 inline const AttributeBooleanValue& GetEnableDnsSupport() const{ return m_enableDnsSupport; }
67 inline bool EnableDnsSupportHasBeenSet() const { return m_enableDnsSupportHasBeenSet; }
68 inline void SetEnableDnsSupport(const AttributeBooleanValue& value) { m_enableDnsSupportHasBeenSet = true; m_enableDnsSupport = value; }
69 inline void SetEnableDnsSupport(AttributeBooleanValue&& value) { m_enableDnsSupportHasBeenSet = true; m_enableDnsSupport = std::move(value); }
73
75
78 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
79 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
80 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
81 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
82 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
83 inline ModifyVpcAttributeRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
84 inline ModifyVpcAttributeRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
85 inline ModifyVpcAttributeRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
87
89
92 inline const AttributeBooleanValue& GetEnableNetworkAddressUsageMetrics() const{ return m_enableNetworkAddressUsageMetrics; }
93 inline bool EnableNetworkAddressUsageMetricsHasBeenSet() const { return m_enableNetworkAddressUsageMetricsHasBeenSet; }
94 inline void SetEnableNetworkAddressUsageMetrics(const AttributeBooleanValue& value) { m_enableNetworkAddressUsageMetricsHasBeenSet = true; m_enableNetworkAddressUsageMetrics = value; }
95 inline void SetEnableNetworkAddressUsageMetrics(AttributeBooleanValue&& value) { m_enableNetworkAddressUsageMetricsHasBeenSet = true; m_enableNetworkAddressUsageMetrics = std::move(value); }
99 private:
100
101 AttributeBooleanValue m_enableDnsHostnames;
102 bool m_enableDnsHostnamesHasBeenSet = false;
103
104 AttributeBooleanValue m_enableDnsSupport;
105 bool m_enableDnsSupportHasBeenSet = false;
106
107 Aws::String m_vpcId;
108 bool m_vpcIdHasBeenSet = false;
109
110 AttributeBooleanValue m_enableNetworkAddressUsageMetrics;
111 bool m_enableNetworkAddressUsageMetricsHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace EC2
116} // namespace Aws
void SetEnableDnsSupport(AttributeBooleanValue &&value)
ModifyVpcAttributeRequest & WithEnableDnsHostnames(AttributeBooleanValue &&value)
const AttributeBooleanValue & GetEnableNetworkAddressUsageMetrics() const
void SetEnableNetworkAddressUsageMetrics(const AttributeBooleanValue &value)
void SetEnableDnsHostnames(const AttributeBooleanValue &value)
virtual const char * GetServiceRequestName() const override
ModifyVpcAttributeRequest & WithVpcId(const char *value)
const AttributeBooleanValue & GetEnableDnsSupport() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyVpcAttributeRequest & WithEnableDnsSupport(AttributeBooleanValue &&value)
AWS_EC2_API Aws::String SerializePayload() const override
const AttributeBooleanValue & GetEnableDnsHostnames() const
ModifyVpcAttributeRequest & WithEnableNetworkAddressUsageMetrics(const AttributeBooleanValue &value)
ModifyVpcAttributeRequest & WithEnableDnsHostnames(const AttributeBooleanValue &value)
void SetEnableDnsHostnames(AttributeBooleanValue &&value)
ModifyVpcAttributeRequest & WithVpcId(const Aws::String &value)
void SetEnableNetworkAddressUsageMetrics(AttributeBooleanValue &&value)
ModifyVpcAttributeRequest & WithEnableDnsSupport(const AttributeBooleanValue &value)
ModifyVpcAttributeRequest & WithVpcId(Aws::String &&value)
ModifyVpcAttributeRequest & WithEnableNetworkAddressUsageMetrics(AttributeBooleanValue &&value)
void SetEnableDnsSupport(const AttributeBooleanValue &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String