AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetCustomDnsServers(const Aws::Vector<Aws::String>& value) { m_customDnsServersHasBeenSet = true; m_customDnsServers = value; }
52 inline void SetCustomDnsServers(Aws::Vector<Aws::String>&& value) { m_customDnsServersHasBeenSet = true; m_customDnsServers = std::move(value); }
55 inline DnsServersOptionsModifyStructure& AddCustomDnsServers(const Aws::String& value) { m_customDnsServersHasBeenSet = true; m_customDnsServers.push_back(value); return *this; }
56 inline DnsServersOptionsModifyStructure& AddCustomDnsServers(Aws::String&& value) { m_customDnsServersHasBeenSet = true; m_customDnsServers.push_back(std::move(value)); return *this; }
57 inline DnsServersOptionsModifyStructure& AddCustomDnsServers(const char* value) { m_customDnsServersHasBeenSet = true; m_customDnsServers.push_back(value); return *this; }
59
61
65 inline bool GetEnabled() const{ return m_enabled; }
66 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
67 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
68 inline DnsServersOptionsModifyStructure& WithEnabled(bool value) { SetEnabled(value); return *this;}
70 private:
71
72 Aws::Vector<Aws::String> m_customDnsServers;
73 bool m_customDnsServersHasBeenSet = false;
74
75 bool m_enabled;
76 bool m_enabledHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace EC2
81} // namespace Aws
DnsServersOptionsModifyStructure & WithEnabled(bool value)
AWS_EC2_API DnsServersOptionsModifyStructure & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DnsServersOptionsModifyStructure & AddCustomDnsServers(Aws::String &&value)
void SetCustomDnsServers(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetCustomDnsServers() const
DnsServersOptionsModifyStructure & AddCustomDnsServers(const char *value)
AWS_EC2_API DnsServersOptionsModifyStructure(const Aws::Utils::Xml::XmlNode &xmlNode)
DnsServersOptionsModifyStructure & WithCustomDnsServers(const Aws::Vector< Aws::String > &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
DnsServersOptionsModifyStructure & AddCustomDnsServers(const Aws::String &value)
DnsServersOptionsModifyStructure & WithCustomDnsServers(Aws::Vector< Aws::String > &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
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