AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DnsServersOptionsModifyStructure.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
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
29 public:
30 AWS_EC2_API DnsServersOptionsModifyStructure() = default;
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
43 inline const Aws::Vector<Aws::String>& GetCustomDnsServers() const { return m_customDnsServers; }
44 inline bool CustomDnsServersHasBeenSet() const { return m_customDnsServersHasBeenSet; }
45 template <typename CustomDnsServersT = Aws::Vector<Aws::String>>
46 void SetCustomDnsServers(CustomDnsServersT&& value) {
47 m_customDnsServersHasBeenSet = true;
48 m_customDnsServers = std::forward<CustomDnsServersT>(value);
49 }
50 template <typename CustomDnsServersT = Aws::Vector<Aws::String>>
52 SetCustomDnsServers(std::forward<CustomDnsServersT>(value));
53 return *this;
54 }
55 template <typename CustomDnsServersT = Aws::String>
57 m_customDnsServersHasBeenSet = true;
58 m_customDnsServers.emplace_back(std::forward<CustomDnsServersT>(value));
59 return *this;
60 }
62
64
68 inline bool GetEnabled() const { return m_enabled; }
69 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
70 inline void SetEnabled(bool value) {
71 m_enabledHasBeenSet = true;
72 m_enabled = value;
73 }
75 SetEnabled(value);
76 return *this;
77 }
79 private:
80 Aws::Vector<Aws::String> m_customDnsServers;
81
82 bool m_enabled{false};
83 bool m_customDnsServersHasBeenSet = false;
84 bool m_enabledHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace EC2
89} // namespace Aws
DnsServersOptionsModifyStructure & WithEnabled(bool value)
DnsServersOptionsModifyStructure & WithCustomDnsServers(CustomDnsServersT &&value)
AWS_EC2_API DnsServersOptionsModifyStructure & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DnsServersOptionsModifyStructure & AddCustomDnsServers(CustomDnsServersT &&value)
const Aws::Vector< Aws::String > & GetCustomDnsServers() const
AWS_EC2_API DnsServersOptionsModifyStructure(const Aws::Utils::Xml::XmlNode &xmlNode)
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
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream