AWS SDK for C++  1.9.132
AWS SDK for C++
PrivateDnsNameConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
37  {
38  public:
42 
43  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44  void OutputToStream(Aws::OStream& oStream, const char* location) const;
45 
46 
52  inline const DnsNameState& GetState() const{ return m_state; }
53 
59  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
60 
66  inline void SetState(const DnsNameState& value) { m_stateHasBeenSet = true; m_state = value; }
67 
73  inline void SetState(DnsNameState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
74 
80  inline PrivateDnsNameConfiguration& WithState(const DnsNameState& value) { SetState(value); return *this;}
81 
87  inline PrivateDnsNameConfiguration& WithState(DnsNameState&& value) { SetState(std::move(value)); return *this;}
88 
89 
93  inline const Aws::String& GetType() const{ return m_type; }
94 
98  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
99 
103  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
104 
108  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
109 
113  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
114 
118  inline PrivateDnsNameConfiguration& WithType(const Aws::String& value) { SetType(value); return *this;}
119 
123  inline PrivateDnsNameConfiguration& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
124 
128  inline PrivateDnsNameConfiguration& WithType(const char* value) { SetType(value); return *this;}
129 
130 
135  inline const Aws::String& GetValue() const{ return m_value; }
136 
141  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
142 
147  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
148 
153  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
154 
159  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
160 
165  inline PrivateDnsNameConfiguration& WithValue(const Aws::String& value) { SetValue(value); return *this;}
166 
171  inline PrivateDnsNameConfiguration& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
172 
177  inline PrivateDnsNameConfiguration& WithValue(const char* value) { SetValue(value); return *this;}
178 
179 
184  inline const Aws::String& GetName() const{ return m_name; }
185 
190  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
191 
196  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
197 
202  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
203 
208  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
209 
214  inline PrivateDnsNameConfiguration& WithName(const Aws::String& value) { SetName(value); return *this;}
215 
220  inline PrivateDnsNameConfiguration& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
221 
226  inline PrivateDnsNameConfiguration& WithName(const char* value) { SetName(value); return *this;}
227 
228  private:
229 
230  DnsNameState m_state;
231  bool m_stateHasBeenSet;
232 
233  Aws::String m_type;
234  bool m_typeHasBeenSet;
235 
236  Aws::String m_value;
237  bool m_valueHasBeenSet;
238 
239  Aws::String m_name;
240  bool m_nameHasBeenSet;
241  };
242 
243 } // namespace Model
244 } // namespace EC2
245 } // namespace Aws
Aws::EC2::Model::PrivateDnsNameConfiguration
Definition: PrivateDnsNameConfiguration.h:37
Aws::EC2::Model::PrivateDnsNameConfiguration::SetValue
void SetValue(const char *value)
Definition: PrivateDnsNameConfiguration.h:159
Aws::EC2::Model::PrivateDnsNameConfiguration::WithValue
PrivateDnsNameConfiguration & WithValue(const Aws::String &value)
Definition: PrivateDnsNameConfiguration.h:165
Aws::EC2::Model::PrivateDnsNameConfiguration::GetValue
const Aws::String & GetValue() const
Definition: PrivateDnsNameConfiguration.h:135
Aws::EC2::Model::PrivateDnsNameConfiguration::WithValue
PrivateDnsNameConfiguration & WithValue(Aws::String &&value)
Definition: PrivateDnsNameConfiguration.h:171
Aws::EC2::Model::PrivateDnsNameConfiguration::SetValue
void SetValue(Aws::String &&value)
Definition: PrivateDnsNameConfiguration.h:153
Aws::EC2::Model::PrivateDnsNameConfiguration::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: PrivateDnsNameConfiguration.h:141
Aws::EC2::Model::DnsNameState
DnsNameState
Definition: DnsNameState.h:17
Aws::EC2::Model::PrivateDnsNameConfiguration::GetName
const Aws::String & GetName() const
Definition: PrivateDnsNameConfiguration.h:184
Aws::EC2::Model::PrivateDnsNameConfiguration::WithType
PrivateDnsNameConfiguration & WithType(const char *value)
Definition: PrivateDnsNameConfiguration.h:128
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::PrivateDnsNameConfiguration::SetName
void SetName(const char *value)
Definition: PrivateDnsNameConfiguration.h:208
Aws::EC2::Model::PrivateDnsNameConfiguration::GetState
const DnsNameState & GetState() const
Definition: PrivateDnsNameConfiguration.h:52
Aws::EC2::Model::PrivateDnsNameConfiguration::WithType
PrivateDnsNameConfiguration & WithType(Aws::String &&value)
Definition: PrivateDnsNameConfiguration.h:123
Aws::EC2::Model::PrivateDnsNameConfiguration::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AWSStreamFwd.h
Aws::EC2::Model::PrivateDnsNameConfiguration::SetType
void SetType(const char *value)
Definition: PrivateDnsNameConfiguration.h:113
Aws::EC2::Model::PrivateDnsNameConfiguration::GetType
const Aws::String & GetType() const
Definition: PrivateDnsNameConfiguration.h:93
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::PrivateDnsNameConfiguration::NameHasBeenSet
bool NameHasBeenSet() const
Definition: PrivateDnsNameConfiguration.h:190
Aws::EC2::Model::PrivateDnsNameConfiguration::SetType
void SetType(Aws::String &&value)
Definition: PrivateDnsNameConfiguration.h:108
Aws::EC2::Model::PrivateDnsNameConfiguration::SetState
void SetState(const DnsNameState &value)
Definition: PrivateDnsNameConfiguration.h:66
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::PrivateDnsNameConfiguration::SetState
void SetState(DnsNameState &&value)
Definition: PrivateDnsNameConfiguration.h:73
Aws::EC2::Model::PrivateDnsNameConfiguration::StateHasBeenSet
bool StateHasBeenSet() const
Definition: PrivateDnsNameConfiguration.h:59
Aws::EC2::Model::PrivateDnsNameConfiguration::WithName
PrivateDnsNameConfiguration & WithName(Aws::String &&value)
Definition: PrivateDnsNameConfiguration.h:220
Aws::EC2::Model::PrivateDnsNameConfiguration::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: PrivateDnsNameConfiguration.h:98
Aws::EC2::Model::PrivateDnsNameConfiguration::SetValue
void SetValue(const Aws::String &value)
Definition: PrivateDnsNameConfiguration.h:147
AWSString.h
Aws::EC2::Model::PrivateDnsNameConfiguration::PrivateDnsNameConfiguration
PrivateDnsNameConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
DnsNameState.h
Aws::EC2::Model::PrivateDnsNameConfiguration::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::PrivateDnsNameConfiguration::WithName
PrivateDnsNameConfiguration & WithName(const Aws::String &value)
Definition: PrivateDnsNameConfiguration.h:214
Aws::EC2::Model::PrivateDnsNameConfiguration::SetName
void SetName(Aws::String &&value)
Definition: PrivateDnsNameConfiguration.h:202
Aws::EC2::Model::PrivateDnsNameConfiguration::WithValue
PrivateDnsNameConfiguration & WithValue(const char *value)
Definition: PrivateDnsNameConfiguration.h:177
Aws::EC2::Model::PrivateDnsNameConfiguration::WithType
PrivateDnsNameConfiguration & WithType(const Aws::String &value)
Definition: PrivateDnsNameConfiguration.h:118
Aws::EC2::Model::PrivateDnsNameConfiguration::SetName
void SetName(const Aws::String &value)
Definition: PrivateDnsNameConfiguration.h:196
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::PrivateDnsNameConfiguration::PrivateDnsNameConfiguration
PrivateDnsNameConfiguration()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
EC2_EXPORTS.h
Aws::EC2::Model::PrivateDnsNameConfiguration::SetType
void SetType(const Aws::String &value)
Definition: PrivateDnsNameConfiguration.h:103
Aws::EC2::Model::PrivateDnsNameConfiguration::WithState
PrivateDnsNameConfiguration & WithState(const DnsNameState &value)
Definition: PrivateDnsNameConfiguration.h:80
Aws::EC2::Model::PrivateDnsNameConfiguration::operator=
PrivateDnsNameConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::PrivateDnsNameConfiguration::WithName
PrivateDnsNameConfiguration & WithName(const char *value)
Definition: PrivateDnsNameConfiguration.h:226
Aws::EC2::Model::PrivateDnsNameConfiguration::WithState
PrivateDnsNameConfiguration & WithState(DnsNameState &&value)
Definition: PrivateDnsNameConfiguration.h:87