AWS SDK for C++  1.9.73
AWS SDK for C++
DhcpOptions.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <aws/ec2/model/Tag.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlNode;
22 } // namespace Xml
23 } // namespace Utils
24 namespace EC2
25 {
26 namespace Model
27 {
28 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const Aws::Vector<DhcpConfiguration>& GetDhcpConfigurations() const{ return m_dhcpConfigurations; }
49 
53  inline bool DhcpConfigurationsHasBeenSet() const { return m_dhcpConfigurationsHasBeenSet; }
54 
58  inline void SetDhcpConfigurations(const Aws::Vector<DhcpConfiguration>& value) { m_dhcpConfigurationsHasBeenSet = true; m_dhcpConfigurations = value; }
59 
63  inline void SetDhcpConfigurations(Aws::Vector<DhcpConfiguration>&& value) { m_dhcpConfigurationsHasBeenSet = true; m_dhcpConfigurations = std::move(value); }
64 
68  inline DhcpOptions& WithDhcpConfigurations(const Aws::Vector<DhcpConfiguration>& value) { SetDhcpConfigurations(value); return *this;}
69 
73  inline DhcpOptions& WithDhcpConfigurations(Aws::Vector<DhcpConfiguration>&& value) { SetDhcpConfigurations(std::move(value)); return *this;}
74 
78  inline DhcpOptions& AddDhcpConfigurations(const DhcpConfiguration& value) { m_dhcpConfigurationsHasBeenSet = true; m_dhcpConfigurations.push_back(value); return *this; }
79 
83  inline DhcpOptions& AddDhcpConfigurations(DhcpConfiguration&& value) { m_dhcpConfigurationsHasBeenSet = true; m_dhcpConfigurations.push_back(std::move(value)); return *this; }
84 
85 
89  inline const Aws::String& GetDhcpOptionsId() const{ return m_dhcpOptionsId; }
90 
94  inline bool DhcpOptionsIdHasBeenSet() const { return m_dhcpOptionsIdHasBeenSet; }
95 
99  inline void SetDhcpOptionsId(const Aws::String& value) { m_dhcpOptionsIdHasBeenSet = true; m_dhcpOptionsId = value; }
100 
104  inline void SetDhcpOptionsId(Aws::String&& value) { m_dhcpOptionsIdHasBeenSet = true; m_dhcpOptionsId = std::move(value); }
105 
109  inline void SetDhcpOptionsId(const char* value) { m_dhcpOptionsIdHasBeenSet = true; m_dhcpOptionsId.assign(value); }
110 
114  inline DhcpOptions& WithDhcpOptionsId(const Aws::String& value) { SetDhcpOptionsId(value); return *this;}
115 
119  inline DhcpOptions& WithDhcpOptionsId(Aws::String&& value) { SetDhcpOptionsId(std::move(value)); return *this;}
120 
124  inline DhcpOptions& WithDhcpOptionsId(const char* value) { SetDhcpOptionsId(value); return *this;}
125 
126 
130  inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
131 
135  inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
136 
140  inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
141 
145  inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
146 
150  inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
151 
155  inline DhcpOptions& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
156 
160  inline DhcpOptions& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
161 
165  inline DhcpOptions& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
166 
167 
171  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
172 
176  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
177 
181  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
182 
186  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
187 
191  inline DhcpOptions& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
192 
196  inline DhcpOptions& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
197 
201  inline DhcpOptions& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
202 
206  inline DhcpOptions& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
207 
208  private:
209 
210  Aws::Vector<DhcpConfiguration> m_dhcpConfigurations;
211  bool m_dhcpConfigurationsHasBeenSet;
212 
213  Aws::String m_dhcpOptionsId;
214  bool m_dhcpOptionsIdHasBeenSet;
215 
216  Aws::String m_ownerId;
217  bool m_ownerIdHasBeenSet;
218 
219  Aws::Vector<Tag> m_tags;
220  bool m_tagsHasBeenSet;
221  };
222 
223 } // namespace Model
224 } // namespace EC2
225 } // namespace Aws
Aws::EC2::Model::DhcpOptions::SetDhcpOptionsId
void SetDhcpOptionsId(const char *value)
Definition: DhcpOptions.h:109
Aws::EC2::Model::DhcpOptions::WithDhcpOptionsId
DhcpOptions & WithDhcpOptionsId(Aws::String &&value)
Definition: DhcpOptions.h:119
Aws::EC2::Model::DhcpOptions::GetOwnerId
const Aws::String & GetOwnerId() const
Definition: DhcpOptions.h:130
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::DhcpOptions::SetOwnerId
void SetOwnerId(Aws::String &&value)
Definition: DhcpOptions.h:145
Aws::EC2::Model::DhcpOptions::SetDhcpOptionsId
void SetDhcpOptionsId(Aws::String &&value)
Definition: DhcpOptions.h:104
Aws::EC2::Model::DhcpOptions::WithOwnerId
DhcpOptions & WithOwnerId(Aws::String &&value)
Definition: DhcpOptions.h:160
Aws::EC2::Model::DhcpOptions::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: DhcpOptions.h:181
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DhcpOptions
Definition: DhcpOptions.h:35
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DhcpOptions::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::DhcpOptions::SetOwnerId
void SetOwnerId(const char *value)
Definition: DhcpOptions.h:150
AWSStreamFwd.h
AWSVector.h
Tag.h
Aws::EC2::Model::DhcpOptions::WithDhcpConfigurations
DhcpOptions & WithDhcpConfigurations(Aws::Vector< DhcpConfiguration > &&value)
Definition: DhcpOptions.h:73
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::DhcpOptions::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: DhcpOptions.h:186
Aws::EC2::Model::DhcpOptions::AddTags
DhcpOptions & AddTags(const Tag &value)
Definition: DhcpOptions.h:201
Aws::EC2::Model::DhcpOptions::SetOwnerId
void SetOwnerId(const Aws::String &value)
Definition: DhcpOptions.h:140
DhcpConfiguration.h
Aws::EC2::Model::DhcpOptions::WithOwnerId
DhcpOptions & WithOwnerId(const char *value)
Definition: DhcpOptions.h:165
Aws::EC2::Model::DhcpOptions::SetDhcpConfigurations
void SetDhcpConfigurations(const Aws::Vector< DhcpConfiguration > &value)
Definition: DhcpOptions.h:58
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::DhcpOptions::DhcpOptions
DhcpOptions()
Aws::EC2::Model::DhcpOptions::DhcpOptionsIdHasBeenSet
bool DhcpOptionsIdHasBeenSet() const
Definition: DhcpOptions.h:94
Aws::EC2::Model::DhcpOptions::AddDhcpConfigurations
DhcpOptions & AddDhcpConfigurations(DhcpConfiguration &&value)
Definition: DhcpOptions.h:83
Aws::EC2::Model::DhcpOptions::DhcpOptions
DhcpOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::DhcpOptions::AddTags
DhcpOptions & AddTags(Tag &&value)
Definition: DhcpOptions.h:206
Aws::EC2::Model::DhcpOptions::GetDhcpConfigurations
const Aws::Vector< DhcpConfiguration > & GetDhcpConfigurations() const
Definition: DhcpOptions.h:48
Aws::EC2::Model::DhcpOptions::GetDhcpOptionsId
const Aws::String & GetDhcpOptionsId() const
Definition: DhcpOptions.h:89
Aws::EC2::Model::DhcpOptions::SetDhcpOptionsId
void SetDhcpOptionsId(const Aws::String &value)
Definition: DhcpOptions.h:99
Aws::EC2::Model::DhcpOptions::WithTags
DhcpOptions & WithTags(Aws::Vector< Tag > &&value)
Definition: DhcpOptions.h:196
AWSString.h
Aws::EC2::Model::DhcpOptions::DhcpConfigurationsHasBeenSet
bool DhcpConfigurationsHasBeenSet() const
Definition: DhcpOptions.h:53
Aws::EC2::Model::DhcpOptions::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: DhcpOptions.h:171
Aws::EC2::Model::DhcpOptions::WithTags
DhcpOptions & WithTags(const Aws::Vector< Tag > &value)
Definition: DhcpOptions.h:191
Aws::EC2::Model::DhcpOptions::WithDhcpOptionsId
DhcpOptions & WithDhcpOptionsId(const Aws::String &value)
Definition: DhcpOptions.h:114
Aws::EC2::Model::DhcpOptions::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::DhcpOptions::WithDhcpOptionsId
DhcpOptions & WithDhcpOptionsId(const char *value)
Definition: DhcpOptions.h:124
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DhcpOptions::SetDhcpConfigurations
void SetDhcpConfigurations(Aws::Vector< DhcpConfiguration > &&value)
Definition: DhcpOptions.h:63
Aws::EC2::Model::DhcpConfiguration
Definition: DhcpConfiguration.h:34
Aws::EC2::Model::DhcpOptions::OwnerIdHasBeenSet
bool OwnerIdHasBeenSet() const
Definition: DhcpOptions.h:135
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::DhcpOptions::WithOwnerId
DhcpOptions & WithOwnerId(const Aws::String &value)
Definition: DhcpOptions.h:155
Aws::EC2::Model::DhcpOptions::operator=
DhcpOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
EC2_EXPORTS.h
Aws::EC2::Model::DhcpOptions::AddDhcpConfigurations
DhcpOptions & AddDhcpConfigurations(const DhcpConfiguration &value)
Definition: DhcpOptions.h:78
Aws::EC2::Model::DhcpOptions::WithDhcpConfigurations
DhcpOptions & WithDhcpConfigurations(const Aws::Vector< DhcpConfiguration > &value)
Definition: DhcpOptions.h:68
Aws::EC2::Model::DhcpOptions::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: DhcpOptions.h:176