AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DhcpConfiguration.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/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/AttributeValue.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2 {
22namespace Model {
23
30 public:
31 AWS_EC2_API DhcpConfiguration() = default;
32 AWS_EC2_API DhcpConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
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
42 inline const Aws::String& GetKey() const { return m_key; }
43 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
44 template <typename KeyT = Aws::String>
45 void SetKey(KeyT&& value) {
46 m_keyHasBeenSet = true;
47 m_key = std::forward<KeyT>(value);
48 }
49 template <typename KeyT = Aws::String>
50 DhcpConfiguration& WithKey(KeyT&& value) {
51 SetKey(std::forward<KeyT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<AttributeValue>& GetValues() const { return m_values; }
61 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
62 template <typename ValuesT = Aws::Vector<AttributeValue>>
63 void SetValues(ValuesT&& value) {
64 m_valuesHasBeenSet = true;
65 m_values = std::forward<ValuesT>(value);
66 }
67 template <typename ValuesT = Aws::Vector<AttributeValue>>
68 DhcpConfiguration& WithValues(ValuesT&& value) {
69 SetValues(std::forward<ValuesT>(value));
70 return *this;
71 }
72 template <typename ValuesT = AttributeValue>
73 DhcpConfiguration& AddValues(ValuesT&& value) {
74 m_valuesHasBeenSet = true;
75 m_values.emplace_back(std::forward<ValuesT>(value));
76 return *this;
77 }
79 private:
80 Aws::String m_key;
81
83 bool m_keyHasBeenSet = false;
84 bool m_valuesHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace EC2
89} // namespace Aws
AWS_EC2_API DhcpConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API DhcpConfiguration()=default
DhcpConfiguration & WithKey(KeyT &&value)
DhcpConfiguration & WithValues(ValuesT &&value)
const Aws::Vector< AttributeValue > & GetValues() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
DhcpConfiguration & AddValues(ValuesT &&value)
AWS_EC2_API DhcpConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
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