AWS SDK for C++  0.14.3
AWS SDK for C++
Dimension.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Xml
24 {
25  class XmlNode;
26 } // namespace Xml
27 } // namespace Utils
28 namespace Route53
29 {
30 namespace Model
31 {
32 
37  {
38  public:
39  Dimension();
40  Dimension(const Aws::Utils::Xml::XmlNode& xmlNode);
41  Dimension& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42 
43  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
44 
48  inline const Aws::String& GetName() const{ return m_name; }
49 
53  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54 
58  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
59 
63  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 
68  inline Dimension& WithName(const Aws::String& value) { SetName(value); return *this;}
69 
73  inline Dimension& WithName(Aws::String&& value) { SetName(value); return *this;}
74 
78  inline Dimension& WithName(const char* value) { SetName(value); return *this;}
79 
83  inline const Aws::String& GetValue() const{ return m_value; }
84 
88  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
89 
93  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = value; }
94 
98  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
99 
103  inline Dimension& WithValue(const Aws::String& value) { SetValue(value); return *this;}
104 
108  inline Dimension& WithValue(Aws::String&& value) { SetValue(value); return *this;}
109 
113  inline Dimension& WithValue(const char* value) { SetValue(value); return *this;}
114 
115  private:
116  Aws::String m_name;
117  bool m_nameHasBeenSet;
118  Aws::String m_value;
119  bool m_valueHasBeenSet;
120  };
121 
122 } // namespace Model
123 } // namespace Route53
124 } // namespace Aws
void SetName(Aws::String &&value)
Definition: Dimension.h:58
Dimension & WithValue(const Aws::String &value)
Definition: Dimension.h:103
const Aws::String & GetValue() const
Definition: Dimension.h:83
Dimension & WithName(const Aws::String &value)
Definition: Dimension.h:68
Dimension & WithValue(const char *value)
Definition: Dimension.h:113
Dimension & WithValue(Aws::String &&value)
Definition: Dimension.h:108
void SetValue(const Aws::String &value)
Definition: Dimension.h:88
const Aws::String & GetName() const
Definition: Dimension.h:48
void SetValue(const char *value)
Definition: Dimension.h:98
Dimension & WithName(Aws::String &&value)
Definition: Dimension.h:73
Dimension & WithName(const char *value)
Definition: Dimension.h:78
void SetValue(Aws::String &&value)
Definition: Dimension.h:93
void SetName(const Aws::String &value)
Definition: Dimension.h:53
#define AWS_ROUTE53_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetName(const char *value)
Definition: Dimension.h:63
JSON (JavaScript Object Notation).