AWS SDK for C++  0.14.3
AWS SDK for C++
RecordError.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 Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace ServiceCatalog
29 {
30 namespace Model
31 {
32 
37  {
38  public:
39  RecordError();
40  RecordError(const Aws::Utils::Json::JsonValue& jsonValue);
41  RecordError& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
47  inline const Aws::String& GetCode() const{ return m_code; }
48 
52  inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
53 
57  inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = value; }
58 
62  inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
63 
67  inline RecordError& WithCode(const Aws::String& value) { SetCode(value); return *this;}
68 
72  inline RecordError& WithCode(Aws::String&& value) { SetCode(value); return *this;}
73 
77  inline RecordError& WithCode(const char* value) { SetCode(value); return *this;}
78 
82  inline const Aws::String& GetDescription() const{ return m_description; }
83 
87  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
88 
92  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
93 
97  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
98 
102  inline RecordError& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
103 
107  inline RecordError& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
108 
112  inline RecordError& WithDescription(const char* value) { SetDescription(value); return *this;}
113 
114  private:
115  Aws::String m_code;
116  bool m_codeHasBeenSet;
117  Aws::String m_description;
118  bool m_descriptionHasBeenSet;
119  };
120 
121 } // namespace Model
122 } // namespace ServiceCatalog
123 } // namespace Aws
RecordError & WithDescription(const Aws::String &value)
Definition: RecordError.h:102
#define AWS_SERVICECATALOG_API
const Aws::String & GetCode() const
Definition: RecordError.h:47
void SetDescription(const char *value)
Definition: RecordError.h:97
RecordError & WithDescription(Aws::String &&value)
Definition: RecordError.h:107
void SetCode(const Aws::String &value)
Definition: RecordError.h:52
RecordError & WithCode(const Aws::String &value)
Definition: RecordError.h:67
RecordError & WithCode(Aws::String &&value)
Definition: RecordError.h:72
const Aws::String & GetDescription() const
Definition: RecordError.h:82
RecordError & WithDescription(const char *value)
Definition: RecordError.h:112
void SetCode(const char *value)
Definition: RecordError.h:62
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetCode(Aws::String &&value)
Definition: RecordError.h:57
void SetDescription(Aws::String &&value)
Definition: RecordError.h:92
RecordError & WithCode(const char *value)
Definition: RecordError.h:77
void SetDescription(const Aws::String &value)
Definition: RecordError.h:87
JSON (JavaScript Object Notation).