AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename OwnerIdT = Aws::String>
52 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
53 template<typename OwnerIdT = Aws::String>
54 DhcpOptions& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
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) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
65 template<typename TagsT = Aws::Vector<Tag>>
66 DhcpOptions& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
67 template<typename TagsT = Tag>
68 DhcpOptions& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
70
72
75 inline const Aws::String& GetDhcpOptionsId() const { return m_dhcpOptionsId; }
76 inline bool DhcpOptionsIdHasBeenSet() const { return m_dhcpOptionsIdHasBeenSet; }
77 template<typename DhcpOptionsIdT = Aws::String>
78 void SetDhcpOptionsId(DhcpOptionsIdT&& value) { m_dhcpOptionsIdHasBeenSet = true; m_dhcpOptionsId = std::forward<DhcpOptionsIdT>(value); }
79 template<typename DhcpOptionsIdT = Aws::String>
80 DhcpOptions& WithDhcpOptionsId(DhcpOptionsIdT&& value) { SetDhcpOptionsId(std::forward<DhcpOptionsIdT>(value)); return *this;}
82
84
87 inline const Aws::Vector<DhcpConfiguration>& GetDhcpConfigurations() const { return m_dhcpConfigurations; }
88 inline bool DhcpConfigurationsHasBeenSet() const { return m_dhcpConfigurationsHasBeenSet; }
89 template<typename DhcpConfigurationsT = Aws::Vector<DhcpConfiguration>>
90 void SetDhcpConfigurations(DhcpConfigurationsT&& value) { m_dhcpConfigurationsHasBeenSet = true; m_dhcpConfigurations = std::forward<DhcpConfigurationsT>(value); }
91 template<typename DhcpConfigurationsT = Aws::Vector<DhcpConfiguration>>
92 DhcpOptions& WithDhcpConfigurations(DhcpConfigurationsT&& value) { SetDhcpConfigurations(std::forward<DhcpConfigurationsT>(value)); return *this;}
93 template<typename DhcpConfigurationsT = DhcpConfiguration>
94 DhcpOptions& AddDhcpConfigurations(DhcpConfigurationsT&& value) { m_dhcpConfigurationsHasBeenSet = true; m_dhcpConfigurations.emplace_back(std::forward<DhcpConfigurationsT>(value)); return *this; }
96 private:
97
98 Aws::String m_ownerId;
99 bool m_ownerIdHasBeenSet = false;
100
101 Aws::Vector<Tag> m_tags;
102 bool m_tagsHasBeenSet = false;
103
104 Aws::String m_dhcpOptionsId;
105 bool m_dhcpOptionsIdHasBeenSet = false;
106
107 Aws::Vector<DhcpConfiguration> m_dhcpConfigurations;
108 bool m_dhcpConfigurationsHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace EC2
113} // namespace Aws
DhcpOptions & WithTags(TagsT &&value)
Definition DhcpOptions.h:66
DhcpOptions & AddTags(TagsT &&value)
Definition DhcpOptions.h:68
const Aws::String & GetOwnerId() const
Definition DhcpOptions.h:49
const Aws::String & GetDhcpOptionsId() const
Definition DhcpOptions.h:75
DhcpOptions & WithDhcpOptionsId(DhcpOptionsIdT &&value)
Definition DhcpOptions.h:80
DhcpOptions & WithOwnerId(OwnerIdT &&value)
Definition DhcpOptions.h:54
void SetTags(TagsT &&value)
Definition DhcpOptions.h:64
AWS_EC2_API DhcpOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
DhcpOptions & AddDhcpConfigurations(DhcpConfigurationsT &&value)
Definition DhcpOptions.h:94
AWS_EC2_API DhcpOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDhcpOptionsId(DhcpOptionsIdT &&value)
Definition DhcpOptions.h:78
void SetOwnerId(OwnerIdT &&value)
Definition DhcpOptions.h:52
bool DhcpConfigurationsHasBeenSet() const
Definition DhcpOptions.h:88
void SetDhcpConfigurations(DhcpConfigurationsT &&value)
Definition DhcpOptions.h:90
bool DhcpOptionsIdHasBeenSet() const
Definition DhcpOptions.h:76
AWS_EC2_API DhcpOptions()=default
const Aws::Vector< DhcpConfiguration > & GetDhcpConfigurations() const
Definition DhcpOptions.h:87
DhcpOptions & WithDhcpConfigurations(DhcpConfigurationsT &&value)
Definition DhcpOptions.h:92
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