AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateDhcpOptionsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/NewDhcpConfiguration.h>
11#include <aws/ec2/model/TagSpecification.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EC2 {
17namespace Model {
18
22 public:
23 AWS_EC2_API CreateDhcpOptionsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateDhcpOptions"; }
30
31 AWS_EC2_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
41 inline const Aws::Vector<NewDhcpConfiguration>& GetDhcpConfigurations() const { return m_dhcpConfigurations; }
42 inline bool DhcpConfigurationsHasBeenSet() const { return m_dhcpConfigurationsHasBeenSet; }
43 template <typename DhcpConfigurationsT = Aws::Vector<NewDhcpConfiguration>>
44 void SetDhcpConfigurations(DhcpConfigurationsT&& value) {
45 m_dhcpConfigurationsHasBeenSet = true;
46 m_dhcpConfigurations = std::forward<DhcpConfigurationsT>(value);
47 }
48 template <typename DhcpConfigurationsT = Aws::Vector<NewDhcpConfiguration>>
49 CreateDhcpOptionsRequest& WithDhcpConfigurations(DhcpConfigurationsT&& value) {
50 SetDhcpConfigurations(std::forward<DhcpConfigurationsT>(value));
51 return *this;
52 }
53 template <typename DhcpConfigurationsT = NewDhcpConfiguration>
54 CreateDhcpOptionsRequest& AddDhcpConfigurations(DhcpConfigurationsT&& value) {
55 m_dhcpConfigurationsHasBeenSet = true;
56 m_dhcpConfigurations.emplace_back(std::forward<DhcpConfigurationsT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
66 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
67 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
68 void SetTagSpecifications(TagSpecificationsT&& value) {
69 m_tagSpecificationsHasBeenSet = true;
70 m_tagSpecifications = std::forward<TagSpecificationsT>(value);
71 }
72 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
73 CreateDhcpOptionsRequest& WithTagSpecifications(TagSpecificationsT&& value) {
74 SetTagSpecifications(std::forward<TagSpecificationsT>(value));
75 return *this;
76 }
77 template <typename TagSpecificationsT = TagSpecification>
78 CreateDhcpOptionsRequest& AddTagSpecifications(TagSpecificationsT&& value) {
79 m_tagSpecificationsHasBeenSet = true;
80 m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
81 return *this;
82 }
84
86
92 inline bool GetDryRun() const { return m_dryRun; }
93 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
94 inline void SetDryRun(bool value) {
95 m_dryRunHasBeenSet = true;
96 m_dryRun = value;
97 }
99 SetDryRun(value);
100 return *this;
101 }
103 private:
104 Aws::Vector<NewDhcpConfiguration> m_dhcpConfigurations;
105
106 Aws::Vector<TagSpecification> m_tagSpecifications;
107
108 bool m_dryRun{false};
109 bool m_dhcpConfigurationsHasBeenSet = false;
110 bool m_tagSpecificationsHasBeenSet = false;
111 bool m_dryRunHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace EC2
116} // namespace Aws
void SetDhcpConfigurations(DhcpConfigurationsT &&value)
CreateDhcpOptionsRequest & AddTagSpecifications(TagSpecificationsT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateDhcpOptionsRequest & AddDhcpConfigurations(DhcpConfigurationsT &&value)
const Aws::Vector< NewDhcpConfiguration > & GetDhcpConfigurations() const
CreateDhcpOptionsRequest & WithDryRun(bool value)
void SetTagSpecifications(TagSpecificationsT &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateDhcpOptionsRequest & WithDhcpConfigurations(DhcpConfigurationsT &&value)
CreateDhcpOptionsRequest & WithTagSpecifications(TagSpecificationsT &&value)
AWS_EC2_API CreateDhcpOptionsRequest()=default
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector