AWS SDK for C++  0.12.9
AWS SDK for C++
ExtraParam.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 Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace Route53Domains
30 {
31 namespace Model
32 {
33 
38  {
39  public:
40  ExtraParam();
41  ExtraParam(const Aws::Utils::Json::JsonValue& jsonValue);
42  ExtraParam& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
60  inline const ExtraParamName& GetName() const{ return m_name; }
61 
77  inline void SetName(const ExtraParamName& value) { m_nameHasBeenSet = true; m_name = value; }
78 
94  inline void SetName(ExtraParamName&& value) { m_nameHasBeenSet = true; m_name = value; }
95 
111  inline ExtraParam& WithName(const ExtraParamName& value) { SetName(value); return *this;}
112 
128  inline ExtraParam& WithName(ExtraParamName&& value) { SetName(value); return *this;}
129 
136  inline const Aws::String& GetValue() const{ return m_value; }
137 
144  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
145 
152  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = value; }
153 
160  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
161 
168  inline ExtraParam& WithValue(const Aws::String& value) { SetValue(value); return *this;}
169 
176  inline ExtraParam& WithValue(Aws::String&& value) { SetValue(value); return *this;}
177 
184  inline ExtraParam& WithValue(const char* value) { SetValue(value); return *this;}
185 
186  private:
187  ExtraParamName m_name;
188  bool m_nameHasBeenSet;
189  Aws::String m_value;
190  bool m_valueHasBeenSet;
191  };
192 
193 } // namespace Model
194 } // namespace Route53Domains
195 } // namespace Aws
void SetName(ExtraParamName &&value)
Definition: ExtraParam.h:94
ExtraParam & WithValue(const Aws::String &value)
Definition: ExtraParam.h:168
const Aws::String & GetValue() const
Definition: ExtraParam.h:136
void SetValue(const char *value)
Definition: ExtraParam.h:160
void SetValue(const Aws::String &value)
Definition: ExtraParam.h:144
#define AWS_ROUTE53DOMAINS_API
ExtraParam & WithName(ExtraParamName &&value)
Definition: ExtraParam.h:128
const ExtraParamName & GetName() const
Definition: ExtraParam.h:60
ExtraParam & WithName(const ExtraParamName &value)
Definition: ExtraParam.h:111
void SetName(const ExtraParamName &value)
Definition: ExtraParam.h:77
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetValue(Aws::String &&value)
Definition: ExtraParam.h:152
ExtraParam & WithValue(Aws::String &&value)
Definition: ExtraParam.h:176
ExtraParam & WithValue(const char *value)
Definition: ExtraParam.h:184
JSON (JavaScript Object Notation).