AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
NewDhcpConfiguration.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 <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
33 {
34 public:
35 AWS_EC2_API NewDhcpConfiguration() = default;
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetKey() const { return m_key; }
48 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
49 template<typename KeyT = Aws::String>
50 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
51 template<typename KeyT = Aws::String>
52 NewDhcpConfiguration& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
54
56
59 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
60 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
61 template<typename ValuesT = Aws::Vector<Aws::String>>
62 void SetValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
63 template<typename ValuesT = Aws::Vector<Aws::String>>
64 NewDhcpConfiguration& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
65 template<typename ValuesT = Aws::String>
66 NewDhcpConfiguration& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
68 private:
69
70 Aws::String m_key;
71 bool m_keyHasBeenSet = false;
72
74 bool m_valuesHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace EC2
79} // namespace Aws
NewDhcpConfiguration & WithValues(ValuesT &&value)
NewDhcpConfiguration & WithKey(KeyT &&value)
AWS_EC2_API NewDhcpConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
NewDhcpConfiguration & AddValues(ValuesT &&value)
AWS_EC2_API NewDhcpConfiguration()=default
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Vector< Aws::String > & GetValues() const
AWS_EC2_API NewDhcpConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
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