AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DhcpConfiguration.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/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/AttributeValue.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_EC2_API DhcpConfiguration();
37 AWS_EC2_API DhcpConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
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
48 inline const Aws::String& GetKey() const{ return m_key; }
49 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
50 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
51 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
52 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
53 inline DhcpConfiguration& WithKey(const Aws::String& value) { SetKey(value); return *this;}
54 inline DhcpConfiguration& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
55 inline DhcpConfiguration& WithKey(const char* value) { SetKey(value); return *this;}
57
59
62 inline const Aws::Vector<AttributeValue>& GetValues() const{ return m_values; }
63 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
64 inline void SetValues(const Aws::Vector<AttributeValue>& value) { m_valuesHasBeenSet = true; m_values = value; }
65 inline void SetValues(Aws::Vector<AttributeValue>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
66 inline DhcpConfiguration& WithValues(const Aws::Vector<AttributeValue>& value) { SetValues(value); return *this;}
67 inline DhcpConfiguration& WithValues(Aws::Vector<AttributeValue>&& value) { SetValues(std::move(value)); return *this;}
68 inline DhcpConfiguration& AddValues(const AttributeValue& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
69 inline DhcpConfiguration& AddValues(AttributeValue&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
71 private:
72
73 Aws::String m_key;
74 bool m_keyHasBeenSet = false;
75
77 bool m_valuesHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace EC2
82} // namespace Aws
AWS_EC2_API DhcpConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetKey(Aws::String &&value)
void SetValues(Aws::Vector< AttributeValue > &&value)
const Aws::Vector< AttributeValue > & GetValues() const
DhcpConfiguration & WithValues(const Aws::Vector< AttributeValue > &value)
DhcpConfiguration & WithValues(Aws::Vector< AttributeValue > &&value)
void SetKey(const Aws::String &value)
DhcpConfiguration & WithKey(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
DhcpConfiguration & AddValues(const AttributeValue &value)
DhcpConfiguration & AddValues(AttributeValue &&value)
AWS_EC2_API DhcpConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DhcpConfiguration & WithKey(const Aws::String &value)
DhcpConfiguration & WithKey(Aws::String &&value)
void SetValues(const Aws::Vector< AttributeValue > &value)
const Aws::String & GetKey() 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