AWS SDK for C++  1.9.66
AWS SDK for C++
DhcpConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace EC2
24 {
25 namespace Model
26 {
27 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::String& GetKey() const{ return m_key; }
48 
52  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
53 
57  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
58 
62  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
63 
67  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
68 
72  inline DhcpConfiguration& WithKey(const Aws::String& value) { SetKey(value); return *this;}
73 
77  inline DhcpConfiguration& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
78 
82  inline DhcpConfiguration& WithKey(const char* value) { SetKey(value); return *this;}
83 
84 
88  inline const Aws::Vector<AttributeValue>& GetValues() const{ return m_values; }
89 
93  inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
94 
98  inline void SetValues(const Aws::Vector<AttributeValue>& value) { m_valuesHasBeenSet = true; m_values = value; }
99 
103  inline void SetValues(Aws::Vector<AttributeValue>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
104 
108  inline DhcpConfiguration& WithValues(const Aws::Vector<AttributeValue>& value) { SetValues(value); return *this;}
109 
113  inline DhcpConfiguration& WithValues(Aws::Vector<AttributeValue>&& value) { SetValues(std::move(value)); return *this;}
114 
118  inline DhcpConfiguration& AddValues(const AttributeValue& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
119 
123  inline DhcpConfiguration& AddValues(AttributeValue&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
124 
125  private:
126 
127  Aws::String m_key;
128  bool m_keyHasBeenSet;
129 
131  bool m_valuesHasBeenSet;
132  };
133 
134 } // namespace Model
135 } // namespace EC2
136 } // namespace Aws
Aws::EC2::Model::DhcpConfiguration::WithKey
DhcpConfiguration & WithKey(Aws::String &&value)
Definition: DhcpConfiguration.h:77
Aws::EC2::Model::DhcpConfiguration::WithKey
DhcpConfiguration & WithKey(const char *value)
Definition: DhcpConfiguration.h:82
AttributeValue.h
Aws::EC2::Model::DhcpConfiguration::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: DhcpConfiguration.h:52
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DhcpConfiguration::SetKey
void SetKey(Aws::String &&value)
Definition: DhcpConfiguration.h:62
Aws::EC2::Model::DhcpConfiguration::GetValues
const Aws::Vector< AttributeValue > & GetValues() const
Definition: DhcpConfiguration.h:88
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DhcpConfiguration::WithValues
DhcpConfiguration & WithValues(const Aws::Vector< AttributeValue > &value)
Definition: DhcpConfiguration.h:108
AWSStreamFwd.h
Aws::EC2::Model::DhcpConfiguration::SetKey
void SetKey(const char *value)
Definition: DhcpConfiguration.h:67
AWSVector.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::AttributeValue
Definition: AttributeValue.h:33
Aws::EC2::Model::DhcpConfiguration::operator=
DhcpConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::DhcpConfiguration::AddValues
DhcpConfiguration & AddValues(AttributeValue &&value)
Definition: DhcpConfiguration.h:123
Aws::EC2::Model::DhcpConfiguration::SetKey
void SetKey(const Aws::String &value)
Definition: DhcpConfiguration.h:57
Aws::EC2::Model::DhcpConfiguration::DhcpConfiguration
DhcpConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::DhcpConfiguration::GetKey
const Aws::String & GetKey() const
Definition: DhcpConfiguration.h:47
Aws::EC2::Model::DhcpConfiguration::SetValues
void SetValues(const Aws::Vector< AttributeValue > &value)
Definition: DhcpConfiguration.h:98
Aws::EC2::Model::DhcpConfiguration::ValuesHasBeenSet
bool ValuesHasBeenSet() const
Definition: DhcpConfiguration.h:93
AWSString.h
Aws::EC2::Model::DhcpConfiguration::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DhcpConfiguration::DhcpConfiguration
DhcpConfiguration()
Aws::EC2::Model::DhcpConfiguration
Definition: DhcpConfiguration.h:34
Aws::EC2::Model::DhcpConfiguration::AddValues
DhcpConfiguration & AddValues(const AttributeValue &value)
Definition: DhcpConfiguration.h:118
Aws::EC2::Model::DhcpConfiguration::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DhcpConfiguration::SetValues
void SetValues(Aws::Vector< AttributeValue > &&value)
Definition: DhcpConfiguration.h:103
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::DhcpConfiguration::WithValues
DhcpConfiguration & WithValues(Aws::Vector< AttributeValue > &&value)
Definition: DhcpConfiguration.h:113
Aws::EC2::Model::DhcpConfiguration::WithKey
DhcpConfiguration & WithKey(const Aws::String &value)
Definition: DhcpConfiguration.h:72
EC2_EXPORTS.h