AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DhcpOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/DhcpConfiguration.h>
12#include <aws/ec2/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2 {
23namespace Model {
24
31 public:
32 AWS_EC2_API DhcpOptions() = default;
33 AWS_EC2_API DhcpOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_EC2_API DhcpOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
44 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
45 template <typename OwnerIdT = Aws::String>
46 void SetOwnerId(OwnerIdT&& value) {
47 m_ownerIdHasBeenSet = true;
48 m_ownerId = std::forward<OwnerIdT>(value);
49 }
50 template <typename OwnerIdT = Aws::String>
51 DhcpOptions& WithOwnerId(OwnerIdT&& value) {
52 SetOwnerId(std::forward<OwnerIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
62 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
63 template <typename TagsT = Aws::Vector<Tag>>
64 void SetTags(TagsT&& value) {
65 m_tagsHasBeenSet = true;
66 m_tags = std::forward<TagsT>(value);
67 }
68 template <typename TagsT = Aws::Vector<Tag>>
69 DhcpOptions& WithTags(TagsT&& value) {
70 SetTags(std::forward<TagsT>(value));
71 return *this;
72 }
73 template <typename TagsT = Tag>
74 DhcpOptions& AddTags(TagsT&& value) {
75 m_tagsHasBeenSet = true;
76 m_tags.emplace_back(std::forward<TagsT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetDhcpOptionsId() const { return m_dhcpOptionsId; }
86 inline bool DhcpOptionsIdHasBeenSet() const { return m_dhcpOptionsIdHasBeenSet; }
87 template <typename DhcpOptionsIdT = Aws::String>
88 void SetDhcpOptionsId(DhcpOptionsIdT&& value) {
89 m_dhcpOptionsIdHasBeenSet = true;
90 m_dhcpOptionsId = std::forward<DhcpOptionsIdT>(value);
91 }
92 template <typename DhcpOptionsIdT = Aws::String>
93 DhcpOptions& WithDhcpOptionsId(DhcpOptionsIdT&& value) {
94 SetDhcpOptionsId(std::forward<DhcpOptionsIdT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::Vector<DhcpConfiguration>& GetDhcpConfigurations() const { return m_dhcpConfigurations; }
104 inline bool DhcpConfigurationsHasBeenSet() const { return m_dhcpConfigurationsHasBeenSet; }
105 template <typename DhcpConfigurationsT = Aws::Vector<DhcpConfiguration>>
106 void SetDhcpConfigurations(DhcpConfigurationsT&& value) {
107 m_dhcpConfigurationsHasBeenSet = true;
108 m_dhcpConfigurations = std::forward<DhcpConfigurationsT>(value);
109 }
110 template <typename DhcpConfigurationsT = Aws::Vector<DhcpConfiguration>>
111 DhcpOptions& WithDhcpConfigurations(DhcpConfigurationsT&& value) {
112 SetDhcpConfigurations(std::forward<DhcpConfigurationsT>(value));
113 return *this;
114 }
115 template <typename DhcpConfigurationsT = DhcpConfiguration>
116 DhcpOptions& AddDhcpConfigurations(DhcpConfigurationsT&& value) {
117 m_dhcpConfigurationsHasBeenSet = true;
118 m_dhcpConfigurations.emplace_back(std::forward<DhcpConfigurationsT>(value));
119 return *this;
120 }
122 private:
123 Aws::String m_ownerId;
124
125 Aws::Vector<Tag> m_tags;
126
127 Aws::String m_dhcpOptionsId;
128
129 Aws::Vector<DhcpConfiguration> m_dhcpConfigurations;
130 bool m_ownerIdHasBeenSet = false;
131 bool m_tagsHasBeenSet = false;
132 bool m_dhcpOptionsIdHasBeenSet = false;
133 bool m_dhcpConfigurationsHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace EC2
138} // namespace Aws
DhcpOptions & WithTags(TagsT &&value)
Definition DhcpOptions.h:69
DhcpOptions & AddTags(TagsT &&value)
Definition DhcpOptions.h:74
const Aws::String & GetOwnerId() const
Definition DhcpOptions.h:43
const Aws::String & GetDhcpOptionsId() const
Definition DhcpOptions.h:85
DhcpOptions & WithDhcpOptionsId(DhcpOptionsIdT &&value)
Definition DhcpOptions.h:93
DhcpOptions & WithOwnerId(OwnerIdT &&value)
Definition DhcpOptions.h:51
void SetTags(TagsT &&value)
Definition DhcpOptions.h:64
AWS_EC2_API DhcpOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
DhcpOptions & AddDhcpConfigurations(DhcpConfigurationsT &&value)
AWS_EC2_API DhcpOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDhcpOptionsId(DhcpOptionsIdT &&value)
Definition DhcpOptions.h:88
void SetOwnerId(OwnerIdT &&value)
Definition DhcpOptions.h:46
bool DhcpConfigurationsHasBeenSet() const
void SetDhcpConfigurations(DhcpConfigurationsT &&value)
bool DhcpOptionsIdHasBeenSet() const
Definition DhcpOptions.h:86
AWS_EC2_API DhcpOptions()=default
const Aws::Vector< DhcpConfiguration > & GetDhcpConfigurations() const
DhcpOptions & WithDhcpConfigurations(DhcpConfigurationsT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Vector< Tag > & GetTags() const
Definition DhcpOptions.h:61
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream