AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
50 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
51 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
52 inline NewDhcpConfiguration& WithKey(const Aws::String& value) { SetKey(value); return *this;}
53 inline NewDhcpConfiguration& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
54 inline NewDhcpConfiguration& WithKey(const char* value) { SetKey(value); return *this;}
56
58
61 inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
62 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
63 inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
64 inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
65 inline NewDhcpConfiguration& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
66 inline NewDhcpConfiguration& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
67 inline NewDhcpConfiguration& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
68 inline NewDhcpConfiguration& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
69 inline NewDhcpConfiguration& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(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
NewDhcpConfiguration & AddValues(const char *value)
AWS_EC2_API NewDhcpConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetValues(const Aws::Vector< Aws::String > &value)
NewDhcpConfiguration & AddValues(const Aws::String &value)
void SetKey(const Aws::String &value)
NewDhcpConfiguration & WithValues(Aws::Vector< Aws::String > &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetValues(Aws::Vector< Aws::String > &&value)
NewDhcpConfiguration & AddValues(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
NewDhcpConfiguration & WithKey(Aws::String &&value)
NewDhcpConfiguration & WithKey(const char *value)
NewDhcpConfiguration & WithKey(const Aws::String &value)
NewDhcpConfiguration & WithValues(const Aws::Vector< Aws::String > &value)
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