AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateDhcpOptionsRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/model/NewDhcpConfiguration.h>
11#include <aws/ec2/model/TagSpecification.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_EC2_API CreateDhcpOptionsRequest() = default;
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_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
45 inline const Aws::Vector<NewDhcpConfiguration>& GetDhcpConfigurations() const { return m_dhcpConfigurations; }
46 inline bool DhcpConfigurationsHasBeenSet() const { return m_dhcpConfigurationsHasBeenSet; }
47 template<typename DhcpConfigurationsT = Aws::Vector<NewDhcpConfiguration>>
48 void SetDhcpConfigurations(DhcpConfigurationsT&& value) { m_dhcpConfigurationsHasBeenSet = true; m_dhcpConfigurations = std::forward<DhcpConfigurationsT>(value); }
49 template<typename DhcpConfigurationsT = Aws::Vector<NewDhcpConfiguration>>
50 CreateDhcpOptionsRequest& WithDhcpConfigurations(DhcpConfigurationsT&& value) { SetDhcpConfigurations(std::forward<DhcpConfigurationsT>(value)); return *this;}
51 template<typename DhcpConfigurationsT = NewDhcpConfiguration>
52 CreateDhcpOptionsRequest& AddDhcpConfigurations(DhcpConfigurationsT&& value) { m_dhcpConfigurationsHasBeenSet = true; m_dhcpConfigurations.emplace_back(std::forward<DhcpConfigurationsT>(value)); return *this; }
54
56
59 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
60 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
61 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
62 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
63 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
64 CreateDhcpOptionsRequest& WithTagSpecifications(TagSpecificationsT&& value) { SetTagSpecifications(std::forward<TagSpecificationsT>(value)); return *this;}
65 template<typename TagSpecificationsT = TagSpecification>
66 CreateDhcpOptionsRequest& AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value)); return *this; }
68
70
76 inline bool GetDryRun() const { return m_dryRun; }
77 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
78 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
79 inline CreateDhcpOptionsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
81 private:
82
83 Aws::Vector<NewDhcpConfiguration> m_dhcpConfigurations;
84 bool m_dhcpConfigurationsHasBeenSet = false;
85
86 Aws::Vector<TagSpecification> m_tagSpecifications;
87 bool m_tagSpecificationsHasBeenSet = false;
88
89 bool m_dryRun{false};
90 bool m_dryRunHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace EC2
95} // 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