AWS SDK for C++  1.9.72
AWS SDK for C++
CreateDhcpOptionsRequest.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>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateDhcpOptions"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
44  inline const Aws::Vector<NewDhcpConfiguration>& GetDhcpConfigurations() const{ return m_dhcpConfigurations; }
45 
49  inline bool DhcpConfigurationsHasBeenSet() const { return m_dhcpConfigurationsHasBeenSet; }
50 
54  inline void SetDhcpConfigurations(const Aws::Vector<NewDhcpConfiguration>& value) { m_dhcpConfigurationsHasBeenSet = true; m_dhcpConfigurations = value; }
55 
59  inline void SetDhcpConfigurations(Aws::Vector<NewDhcpConfiguration>&& value) { m_dhcpConfigurationsHasBeenSet = true; m_dhcpConfigurations = std::move(value); }
60 
64  inline CreateDhcpOptionsRequest& WithDhcpConfigurations(const Aws::Vector<NewDhcpConfiguration>& value) { SetDhcpConfigurations(value); return *this;}
65 
69  inline CreateDhcpOptionsRequest& WithDhcpConfigurations(Aws::Vector<NewDhcpConfiguration>&& value) { SetDhcpConfigurations(std::move(value)); return *this;}
70 
74  inline CreateDhcpOptionsRequest& AddDhcpConfigurations(const NewDhcpConfiguration& value) { m_dhcpConfigurationsHasBeenSet = true; m_dhcpConfigurations.push_back(value); return *this; }
75 
79  inline CreateDhcpOptionsRequest& AddDhcpConfigurations(NewDhcpConfiguration&& value) { m_dhcpConfigurationsHasBeenSet = true; m_dhcpConfigurations.push_back(std::move(value)); return *this; }
80 
81 
85  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
86 
90  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
91 
95  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
96 
100  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
101 
105  inline CreateDhcpOptionsRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
106 
110  inline CreateDhcpOptionsRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
111 
115  inline CreateDhcpOptionsRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
116 
120  inline CreateDhcpOptionsRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
121 
122 
129  inline bool GetDryRun() const{ return m_dryRun; }
130 
137  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
138 
145  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
146 
153  inline CreateDhcpOptionsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
154 
155  private:
156 
157  Aws::Vector<NewDhcpConfiguration> m_dhcpConfigurations;
158  bool m_dhcpConfigurationsHasBeenSet;
159 
160  Aws::Vector<TagSpecification> m_tagSpecifications;
161  bool m_tagSpecificationsHasBeenSet;
162 
163  bool m_dryRun;
164  bool m_dryRunHasBeenSet;
165  };
166 
167 } // namespace Model
168 } // namespace EC2
169 } // namespace Aws
TagSpecification.h
Aws::EC2::Model::CreateDhcpOptionsRequest
Definition: CreateDhcpOptionsRequest.h:24
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateDhcpOptionsRequest::TagSpecificationsHasBeenSet
bool TagSpecificationsHasBeenSet() const
Definition: CreateDhcpOptionsRequest.h:90
Aws::EC2::Model::CreateDhcpOptionsRequest::SetTagSpecifications
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateDhcpOptionsRequest.h:100
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::EC2::Model::CreateDhcpOptionsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::CreateDhcpOptionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::CreateDhcpOptionsRequest::WithDryRun
CreateDhcpOptionsRequest & WithDryRun(bool value)
Definition: CreateDhcpOptionsRequest.h:153
Aws::EC2::Model::CreateDhcpOptionsRequest::WithTagSpecifications
CreateDhcpOptionsRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateDhcpOptionsRequest.h:105
Aws::EC2::Model::CreateDhcpOptionsRequest::SetTagSpecifications
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateDhcpOptionsRequest.h:95
Aws::EC2::Model::CreateDhcpOptionsRequest::WithDhcpConfigurations
CreateDhcpOptionsRequest & WithDhcpConfigurations(const Aws::Vector< NewDhcpConfiguration > &value)
Definition: CreateDhcpOptionsRequest.h:64
Aws::EC2::Model::CreateDhcpOptionsRequest::GetDhcpConfigurations
const Aws::Vector< NewDhcpConfiguration > & GetDhcpConfigurations() const
Definition: CreateDhcpOptionsRequest.h:44
Aws::EC2::Model::CreateDhcpOptionsRequest::CreateDhcpOptionsRequest
CreateDhcpOptionsRequest()
EC2Request.h
Aws::EC2::Model::CreateDhcpOptionsRequest::WithTagSpecifications
CreateDhcpOptionsRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateDhcpOptionsRequest.h:110
Aws::EC2::Model::CreateDhcpOptionsRequest::DhcpConfigurationsHasBeenSet
bool DhcpConfigurationsHasBeenSet() const
Definition: CreateDhcpOptionsRequest.h:49
Aws::EC2::Model::CreateDhcpOptionsRequest::WithDhcpConfigurations
CreateDhcpOptionsRequest & WithDhcpConfigurations(Aws::Vector< NewDhcpConfiguration > &&value)
Definition: CreateDhcpOptionsRequest.h:69
Aws::EC2::Model::CreateDhcpOptionsRequest::SetDhcpConfigurations
void SetDhcpConfigurations(const Aws::Vector< NewDhcpConfiguration > &value)
Definition: CreateDhcpOptionsRequest.h:54
Aws
Definition: AccessManagementClient.h:15
NewDhcpConfiguration.h
Aws::EC2::Model::CreateDhcpOptionsRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateDhcpOptionsRequest.h:145
Aws::EC2::Model::CreateDhcpOptionsRequest::AddTagSpecifications
CreateDhcpOptionsRequest & AddTagSpecifications(TagSpecification &&value)
Definition: CreateDhcpOptionsRequest.h:120
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::CreateDhcpOptionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateDhcpOptionsRequest.h:32
Aws::EC2::Model::CreateDhcpOptionsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateDhcpOptionsRequest.h:137
Aws::EC2::Model::CreateDhcpOptionsRequest::AddDhcpConfigurations
CreateDhcpOptionsRequest & AddDhcpConfigurations(NewDhcpConfiguration &&value)
Definition: CreateDhcpOptionsRequest.h:79
Aws::EC2::Model::CreateDhcpOptionsRequest::GetDryRun
bool GetDryRun() const
Definition: CreateDhcpOptionsRequest.h:129
Aws::EC2::Model::CreateDhcpOptionsRequest::SetDhcpConfigurations
void SetDhcpConfigurations(Aws::Vector< NewDhcpConfiguration > &&value)
Definition: CreateDhcpOptionsRequest.h:59
Aws::EC2::Model::CreateDhcpOptionsRequest::GetTagSpecifications
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
Definition: CreateDhcpOptionsRequest.h:85
Aws::EC2::Model::TagSpecification
Definition: TagSpecification.h:35
EC2_EXPORTS.h
Aws::EC2::Model::CreateDhcpOptionsRequest::AddDhcpConfigurations
CreateDhcpOptionsRequest & AddDhcpConfigurations(const NewDhcpConfiguration &value)
Definition: CreateDhcpOptionsRequest.h:74
Aws::EC2::Model::NewDhcpConfiguration
Definition: NewDhcpConfiguration.h:28
Aws::EC2::Model::CreateDhcpOptionsRequest::AddTagSpecifications
CreateDhcpOptionsRequest & AddTagSpecifications(const TagSpecification &value)
Definition: CreateDhcpOptionsRequest.h:115