AWS SDK for C++  0.12.9
AWS SDK for C++
Attribute.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace SimpleDB
30 {
31 namespace Model
32 {
33 
38  {
39  public:
40  Attribute();
41  Attribute(const Aws::Utils::Xml::XmlNode& xmlNode);
42  Attribute& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43 
44  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45  void OutputToStream(Aws::OStream& oStream, const char* location) const;
46 
50  inline const Aws::String& GetName() const{ return m_name; }
51 
55  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 
60  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
61 
65  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 
70  inline Attribute& WithName(const Aws::String& value) { SetName(value); return *this;}
71 
75  inline Attribute& WithName(Aws::String&& value) { SetName(value); return *this;}
76 
80  inline Attribute& WithName(const char* value) { SetName(value); return *this;}
81 
85  inline const Aws::String& GetAlternateNameEncoding() const{ return m_alternateNameEncoding; }
86 
90  inline void SetAlternateNameEncoding(const Aws::String& value) { m_alternateNameEncodingHasBeenSet = true; m_alternateNameEncoding = value; }
91 
95  inline void SetAlternateNameEncoding(Aws::String&& value) { m_alternateNameEncodingHasBeenSet = true; m_alternateNameEncoding = value; }
96 
100  inline void SetAlternateNameEncoding(const char* value) { m_alternateNameEncodingHasBeenSet = true; m_alternateNameEncoding.assign(value); }
101 
105  inline Attribute& WithAlternateNameEncoding(const Aws::String& value) { SetAlternateNameEncoding(value); return *this;}
106 
110  inline Attribute& WithAlternateNameEncoding(Aws::String&& value) { SetAlternateNameEncoding(value); return *this;}
111 
115  inline Attribute& WithAlternateNameEncoding(const char* value) { SetAlternateNameEncoding(value); return *this;}
116 
120  inline const Aws::String& GetValue() const{ return m_value; }
121 
125  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
126 
130  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = value; }
131 
135  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
136 
140  inline Attribute& WithValue(const Aws::String& value) { SetValue(value); return *this;}
141 
145  inline Attribute& WithValue(Aws::String&& value) { SetValue(value); return *this;}
146 
150  inline Attribute& WithValue(const char* value) { SetValue(value); return *this;}
151 
155  inline const Aws::String& GetAlternateValueEncoding() const{ return m_alternateValueEncoding; }
156 
160  inline void SetAlternateValueEncoding(const Aws::String& value) { m_alternateValueEncodingHasBeenSet = true; m_alternateValueEncoding = value; }
161 
165  inline void SetAlternateValueEncoding(Aws::String&& value) { m_alternateValueEncodingHasBeenSet = true; m_alternateValueEncoding = value; }
166 
170  inline void SetAlternateValueEncoding(const char* value) { m_alternateValueEncodingHasBeenSet = true; m_alternateValueEncoding.assign(value); }
171 
175  inline Attribute& WithAlternateValueEncoding(const Aws::String& value) { SetAlternateValueEncoding(value); return *this;}
176 
180  inline Attribute& WithAlternateValueEncoding(Aws::String&& value) { SetAlternateValueEncoding(value); return *this;}
181 
185  inline Attribute& WithAlternateValueEncoding(const char* value) { SetAlternateValueEncoding(value); return *this;}
186 
187  private:
188  Aws::String m_name;
189  bool m_nameHasBeenSet;
190  Aws::String m_alternateNameEncoding;
191  bool m_alternateNameEncodingHasBeenSet;
192  Aws::String m_value;
193  bool m_valueHasBeenSet;
194  Aws::String m_alternateValueEncoding;
195  bool m_alternateValueEncodingHasBeenSet;
196  };
197 
198 } // namespace Model
199 } // namespace SimpleDB
200 } // namespace Aws
const Aws::String & GetName() const
Definition: Attribute.h:50
Attribute & WithAlternateNameEncoding(Aws::String &&value)
Definition: Attribute.h:110
Attribute & WithName(const Aws::String &value)
Definition: Attribute.h:70
Attribute & WithAlternateValueEncoding(const char *value)
Definition: Attribute.h:185
Attribute & WithAlternateValueEncoding(Aws::String &&value)
Definition: Attribute.h:180
Attribute & WithValue(const char *value)
Definition: Attribute.h:150
void SetName(Aws::String &&value)
Definition: Attribute.h:60
void SetName(const Aws::String &value)
Definition: Attribute.h:55
void SetValue(Aws::String &&value)
Definition: Attribute.h:130
void SetAlternateValueEncoding(const Aws::String &value)
Definition: Attribute.h:160
Attribute & WithName(Aws::String &&value)
Definition: Attribute.h:75
const Aws::String & GetAlternateValueEncoding() const
Definition: Attribute.h:155
Attribute & WithValue(Aws::String &&value)
Definition: Attribute.h:145
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetName(const char *value)
Definition: Attribute.h:65
void SetAlternateNameEncoding(const Aws::String &value)
Definition: Attribute.h:90
const Aws::String & GetValue() const
Definition: Attribute.h:120
void SetValue(const Aws::String &value)
Definition: Attribute.h:125
#define AWS_SIMPLEDB_API
Attribute & WithAlternateValueEncoding(const Aws::String &value)
Definition: Attribute.h:175
void SetAlternateValueEncoding(Aws::String &&value)
Definition: Attribute.h:165
Attribute & WithAlternateNameEncoding(const char *value)
Definition: Attribute.h:115
Attribute & WithAlternateNameEncoding(const Aws::String &value)
Definition: Attribute.h:105
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetValue(const char *value)
Definition: Attribute.h:135
void SetAlternateNameEncoding(const char *value)
Definition: Attribute.h:100
Attribute & WithValue(const Aws::String &value)
Definition: Attribute.h:140
void SetAlternateNameEncoding(Aws::String &&value)
Definition: Attribute.h:95
Attribute & WithName(const char *value)
Definition: Attribute.h:80
void SetAlternateValueEncoding(const char *value)
Definition: Attribute.h:170
const Aws::String & GetAlternateNameEncoding() const
Definition: Attribute.h:85
JSON (JavaScript Object Notation).