AWS SDK for C++  0.14.3
AWS SDK for C++
NewDhcpConfiguration.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ec2/EC2_EXPORTS.h>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace EC2
31 {
32 namespace Model
33 {
34 
36  {
37  public:
40  NewDhcpConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41 
42  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43  void OutputToStream(Aws::OStream& oStream, const char* location) const;
44 
45 
46  inline const Aws::String& GetKey() const{ return m_key; }
47 
48 
49  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
50 
51 
52  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = value; }
53 
54 
55  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
56 
57 
58  inline NewDhcpConfiguration& WithKey(const Aws::String& value) { SetKey(value); return *this;}
59 
60 
61  inline NewDhcpConfiguration& WithKey(Aws::String&& value) { SetKey(value); return *this;}
62 
63 
64  inline NewDhcpConfiguration& WithKey(const char* value) { SetKey(value); return *this;}
65 
66 
67  inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
68 
69 
70  inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
71 
72 
73  inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = value; }
74 
75 
76  inline NewDhcpConfiguration& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
77 
78 
79  inline NewDhcpConfiguration& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(value); return *this;}
80 
81 
82  inline NewDhcpConfiguration& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
83 
84 
85  inline NewDhcpConfiguration& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
86 
87 
88  inline NewDhcpConfiguration& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
89 
90  private:
91  Aws::String m_key;
92  bool m_keyHasBeenSet;
93  Aws::Vector<Aws::String> m_values;
94  bool m_valuesHasBeenSet;
95  };
96 
97 } // namespace Model
98 } // namespace EC2
99 } // namespace Aws
NewDhcpConfiguration & AddValues(Aws::String &&value)
NewDhcpConfiguration & AddValues(const char *value)
const Aws::Vector< Aws::String > & GetValues() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
NewDhcpConfiguration & WithKey(Aws::String &&value)
NewDhcpConfiguration & WithKey(const char *value)
void SetValues(Aws::Vector< Aws::String > &&value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
NewDhcpConfiguration & WithKey(const Aws::String &value)
const Aws::String & GetKey() const
NewDhcpConfiguration & WithValues(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
NewDhcpConfiguration & AddValues(const Aws::String &value)
NewDhcpConfiguration & WithValues(Aws::Vector< Aws::String > &&value)
void SetValues(const Aws::Vector< Aws::String > &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
void SetKey(const Aws::String &value)
JSON (JavaScript Object Notation).