AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DnsServersOptionsModifyStructure.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_EC2_API DnsServersOptionsModifyStructure() = default;
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
49 inline const Aws::Vector<Aws::String>& GetCustomDnsServers() const { return m_customDnsServers; }
50 inline bool CustomDnsServersHasBeenSet() const { return m_customDnsServersHasBeenSet; }
51 template<typename CustomDnsServersT = Aws::Vector<Aws::String>>
52 void SetCustomDnsServers(CustomDnsServersT&& value) { m_customDnsServersHasBeenSet = true; m_customDnsServers = std::forward<CustomDnsServersT>(value); }
53 template<typename CustomDnsServersT = Aws::Vector<Aws::String>>
54 DnsServersOptionsModifyStructure& WithCustomDnsServers(CustomDnsServersT&& value) { SetCustomDnsServers(std::forward<CustomDnsServersT>(value)); return *this;}
55 template<typename CustomDnsServersT = Aws::String>
56 DnsServersOptionsModifyStructure& AddCustomDnsServers(CustomDnsServersT&& value) { m_customDnsServersHasBeenSet = true; m_customDnsServers.emplace_back(std::forward<CustomDnsServersT>(value)); return *this; }
58
60
64 inline bool GetEnabled() const { return m_enabled; }
65 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
66 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
67 inline DnsServersOptionsModifyStructure& WithEnabled(bool value) { SetEnabled(value); return *this;}
69 private:
70
71 Aws::Vector<Aws::String> m_customDnsServers;
72 bool m_customDnsServersHasBeenSet = false;
73
74 bool m_enabled{false};
75 bool m_enabledHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace EC2
80} // 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