AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PrivateDnsNameConfiguration.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/DnsNameState.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
34 {
35 public:
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
50 inline const DnsNameState& GetState() const{ return m_state; }
51 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
52 inline void SetState(const DnsNameState& value) { m_stateHasBeenSet = true; m_state = value; }
53 inline void SetState(DnsNameState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
54 inline PrivateDnsNameConfiguration& WithState(const DnsNameState& value) { SetState(value); return *this;}
55 inline PrivateDnsNameConfiguration& WithState(DnsNameState&& value) { SetState(std::move(value)); return *this;}
57
59
62 inline const Aws::String& GetType() const{ return m_type; }
63 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
64 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
65 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
66 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
67 inline PrivateDnsNameConfiguration& WithType(const Aws::String& value) { SetType(value); return *this;}
68 inline PrivateDnsNameConfiguration& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
69 inline PrivateDnsNameConfiguration& WithType(const char* value) { SetType(value); return *this;}
71
73
77 inline const Aws::String& GetValue() const{ return m_value; }
78 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
79 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
80 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
81 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
82 inline PrivateDnsNameConfiguration& WithValue(const Aws::String& value) { SetValue(value); return *this;}
83 inline PrivateDnsNameConfiguration& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
84 inline PrivateDnsNameConfiguration& WithValue(const char* value) { SetValue(value); return *this;}
86
88
92 inline const Aws::String& GetName() const{ return m_name; }
93 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
94 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
95 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
96 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
97 inline PrivateDnsNameConfiguration& WithName(const Aws::String& value) { SetName(value); return *this;}
98 inline PrivateDnsNameConfiguration& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
99 inline PrivateDnsNameConfiguration& WithName(const char* value) { SetName(value); return *this;}
101 private:
102
103 DnsNameState m_state;
104 bool m_stateHasBeenSet = false;
105
106 Aws::String m_type;
107 bool m_typeHasBeenSet = false;
108
109 Aws::String m_value;
110 bool m_valueHasBeenSet = false;
111
112 Aws::String m_name;
113 bool m_nameHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace EC2
118} // namespace Aws
PrivateDnsNameConfiguration & WithType(const Aws::String &value)
PrivateDnsNameConfiguration & WithName(const Aws::String &value)
PrivateDnsNameConfiguration & WithValue(Aws::String &&value)
PrivateDnsNameConfiguration & WithState(DnsNameState &&value)
PrivateDnsNameConfiguration & WithType(const char *value)
PrivateDnsNameConfiguration & WithValue(const char *value)
PrivateDnsNameConfiguration & WithState(const DnsNameState &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
PrivateDnsNameConfiguration & WithType(Aws::String &&value)
AWS_EC2_API PrivateDnsNameConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
PrivateDnsNameConfiguration & WithValue(const Aws::String &value)
PrivateDnsNameConfiguration & WithName(Aws::String &&value)
PrivateDnsNameConfiguration & WithName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream