AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DhcpOptions.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/Tag.h>
12#include <aws/ec2/model/DhcpConfiguration.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_EC2_API DhcpOptions();
38 AWS_EC2_API DhcpOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_EC2_API DhcpOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
50 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
51 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
52 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
53 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
54 inline DhcpOptions& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
55 inline DhcpOptions& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
56 inline DhcpOptions& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
58
60
63 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
64 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
65 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
66 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
67 inline DhcpOptions& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
68 inline DhcpOptions& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
69 inline DhcpOptions& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
70 inline DhcpOptions& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
72
74
77 inline const Aws::String& GetDhcpOptionsId() const{ return m_dhcpOptionsId; }
78 inline bool DhcpOptionsIdHasBeenSet() const { return m_dhcpOptionsIdHasBeenSet; }
79 inline void SetDhcpOptionsId(const Aws::String& value) { m_dhcpOptionsIdHasBeenSet = true; m_dhcpOptionsId = value; }
80 inline void SetDhcpOptionsId(Aws::String&& value) { m_dhcpOptionsIdHasBeenSet = true; m_dhcpOptionsId = std::move(value); }
81 inline void SetDhcpOptionsId(const char* value) { m_dhcpOptionsIdHasBeenSet = true; m_dhcpOptionsId.assign(value); }
82 inline DhcpOptions& WithDhcpOptionsId(const Aws::String& value) { SetDhcpOptionsId(value); return *this;}
83 inline DhcpOptions& WithDhcpOptionsId(Aws::String&& value) { SetDhcpOptionsId(std::move(value)); return *this;}
84 inline DhcpOptions& WithDhcpOptionsId(const char* value) { SetDhcpOptionsId(value); return *this;}
86
88
91 inline const Aws::Vector<DhcpConfiguration>& GetDhcpConfigurations() const{ return m_dhcpConfigurations; }
92 inline bool DhcpConfigurationsHasBeenSet() const { return m_dhcpConfigurationsHasBeenSet; }
93 inline void SetDhcpConfigurations(const Aws::Vector<DhcpConfiguration>& value) { m_dhcpConfigurationsHasBeenSet = true; m_dhcpConfigurations = value; }
94 inline void SetDhcpConfigurations(Aws::Vector<DhcpConfiguration>&& value) { m_dhcpConfigurationsHasBeenSet = true; m_dhcpConfigurations = std::move(value); }
97 inline DhcpOptions& AddDhcpConfigurations(const DhcpConfiguration& value) { m_dhcpConfigurationsHasBeenSet = true; m_dhcpConfigurations.push_back(value); return *this; }
98 inline DhcpOptions& AddDhcpConfigurations(DhcpConfiguration&& value) { m_dhcpConfigurationsHasBeenSet = true; m_dhcpConfigurations.push_back(std::move(value)); return *this; }
100 private:
101
102 Aws::String m_ownerId;
103 bool m_ownerIdHasBeenSet = false;
104
105 Aws::Vector<Tag> m_tags;
106 bool m_tagsHasBeenSet = false;
107
108 Aws::String m_dhcpOptionsId;
109 bool m_dhcpOptionsIdHasBeenSet = false;
110
111 Aws::Vector<DhcpConfiguration> m_dhcpConfigurations;
112 bool m_dhcpConfigurationsHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace EC2
117} // namespace Aws
DhcpOptions & AddTags(const Tag &value)
Definition DhcpOptions.h:69
DhcpOptions & WithDhcpConfigurations(Aws::Vector< DhcpConfiguration > &&value)
Definition DhcpOptions.h:96
void SetOwnerId(Aws::String &&value)
Definition DhcpOptions.h:52
DhcpOptions & WithDhcpConfigurations(const Aws::Vector< DhcpConfiguration > &value)
Definition DhcpOptions.h:95
const Aws::String & GetOwnerId() const
Definition DhcpOptions.h:49
const Aws::String & GetDhcpOptionsId() const
Definition DhcpOptions.h:77
DhcpOptions & WithOwnerId(Aws::String &&value)
Definition DhcpOptions.h:55
DhcpOptions & WithOwnerId(const Aws::String &value)
Definition DhcpOptions.h:54
DhcpOptions & AddTags(Tag &&value)
Definition DhcpOptions.h:70
DhcpOptions & AddDhcpConfigurations(const DhcpConfiguration &value)
Definition DhcpOptions.h:97
void SetOwnerId(const char *value)
Definition DhcpOptions.h:53
DhcpOptions & AddDhcpConfigurations(DhcpConfiguration &&value)
Definition DhcpOptions.h:98
AWS_EC2_API DhcpOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDhcpOptionsId(Aws::String &&value)
Definition DhcpOptions.h:80
void SetTags(Aws::Vector< Tag > &&value)
Definition DhcpOptions.h:66
void SetOwnerId(const Aws::String &value)
Definition DhcpOptions.h:51
AWS_EC2_API DhcpOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetTags(const Aws::Vector< Tag > &value)
Definition DhcpOptions.h:65
void SetDhcpConfigurations(const Aws::Vector< DhcpConfiguration > &value)
Definition DhcpOptions.h:93
bool DhcpConfigurationsHasBeenSet() const
Definition DhcpOptions.h:92
DhcpOptions & WithDhcpOptionsId(const char *value)
Definition DhcpOptions.h:84
DhcpOptions & WithTags(const Aws::Vector< Tag > &value)
Definition DhcpOptions.h:67
void SetDhcpOptionsId(const char *value)
Definition DhcpOptions.h:81
void SetDhcpConfigurations(Aws::Vector< DhcpConfiguration > &&value)
Definition DhcpOptions.h:94
bool DhcpOptionsIdHasBeenSet() const
Definition DhcpOptions.h:78
DhcpOptions & WithOwnerId(const char *value)
Definition DhcpOptions.h:56
const Aws::Vector< DhcpConfiguration > & GetDhcpConfigurations() const
Definition DhcpOptions.h:91
DhcpOptions & WithDhcpOptionsId(Aws::String &&value)
Definition DhcpOptions.h:83
DhcpOptions & WithDhcpOptionsId(const Aws::String &value)
Definition DhcpOptions.h:82
void SetDhcpOptionsId(const Aws::String &value)
Definition DhcpOptions.h:79
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:63
DhcpOptions & WithTags(Aws::Vector< Tag > &&value)
Definition DhcpOptions.h:68
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