AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PrivateDnsNameConfiguration.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/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/DnsNameState.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
30 public:
31 AWS_EC2_API PrivateDnsNameConfiguration() = default;
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
44 inline DnsNameState GetState() const { return m_state; }
45 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
46 inline void SetState(DnsNameState value) {
47 m_stateHasBeenSet = true;
48 m_state = value;
49 }
51 SetState(value);
52 return *this;
53 }
55
57
60 inline const Aws::String& GetType() const { return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 template <typename TypeT = Aws::String>
63 void SetType(TypeT&& value) {
64 m_typeHasBeenSet = true;
65 m_type = std::forward<TypeT>(value);
66 }
67 template <typename TypeT = Aws::String>
69 SetType(std::forward<TypeT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetValue() const { return m_value; }
80 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
81 template <typename ValueT = Aws::String>
82 void SetValue(ValueT&& value) {
83 m_valueHasBeenSet = true;
84 m_value = std::forward<ValueT>(value);
85 }
86 template <typename ValueT = Aws::String>
88 SetValue(std::forward<ValueT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::String& GetName() const { return m_name; }
99 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
100 template <typename NameT = Aws::String>
101 void SetName(NameT&& value) {
102 m_nameHasBeenSet = true;
103 m_name = std::forward<NameT>(value);
104 }
105 template <typename NameT = Aws::String>
107 SetName(std::forward<NameT>(value));
108 return *this;
109 }
111 private:
113
114 Aws::String m_type;
115
116 Aws::String m_value;
117
118 Aws::String m_name;
119 bool m_stateHasBeenSet = false;
120 bool m_typeHasBeenSet = false;
121 bool m_valueHasBeenSet = false;
122 bool m_nameHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace EC2
127} // namespace Aws
PrivateDnsNameConfiguration & WithState(DnsNameState value)
PrivateDnsNameConfiguration & WithValue(ValueT &&value)
PrivateDnsNameConfiguration & WithName(NameT &&value)
PrivateDnsNameConfiguration & WithType(TypeT &&value)
AWS_EC2_API PrivateDnsNameConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API PrivateDnsNameConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API PrivateDnsNameConfiguration()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream