AWS SDK for C++  1.9.160
AWS SDK for C++
RecordError.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace ServiceCatalog
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetCode() const{ return m_code; }
45 
49  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
50 
54  inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
55 
59  inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
60 
64  inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
65 
69  inline RecordError& WithCode(const Aws::String& value) { SetCode(value); return *this;}
70 
74  inline RecordError& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
75 
79  inline RecordError& WithCode(const char* value) { SetCode(value); return *this;}
80 
81 
85  inline const Aws::String& GetDescription() const{ return m_description; }
86 
90  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
91 
95  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
96 
100  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
101 
105  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
106 
110  inline RecordError& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
111 
115  inline RecordError& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
116 
120  inline RecordError& WithDescription(const char* value) { SetDescription(value); return *this;}
121 
122  private:
123 
124  Aws::String m_code;
125  bool m_codeHasBeenSet;
126 
127  Aws::String m_description;
128  bool m_descriptionHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace ServiceCatalog
133 } // namespace Aws
Aws::ServiceCatalog::Model::RecordError::WithCode
RecordError & WithCode(Aws::String &&value)
Definition: RecordError.h:74
Aws::ServiceCatalog::Model::RecordError::WithCode
RecordError & WithCode(const char *value)
Definition: RecordError.h:79
Aws::ServiceCatalog::Model::RecordError::WithCode
RecordError & WithCode(const Aws::String &value)
Definition: RecordError.h:69
Aws::ServiceCatalog::Model::RecordError::SetDescription
void SetDescription(Aws::String &&value)
Definition: RecordError.h:100
Aws::ServiceCatalog::Model::RecordError::GetDescription
const Aws::String & GetDescription() const
Definition: RecordError.h:85
Aws::ServiceCatalog::Model::RecordError::SetCode
void SetCode(const char *value)
Definition: RecordError.h:64
Aws::ServiceCatalog::Model::RecordError::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AWS_SERVICECATALOG_API
#define AWS_SERVICECATALOG_API
Definition: ServiceCatalog_EXPORTS.h:28
Aws::ServiceCatalog::Model::RecordError::operator=
RecordError & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ServiceCatalog::Model::RecordError::RecordError
RecordError(Aws::Utils::Json::JsonView jsonValue)
Aws::ServiceCatalog::Model::RecordError::SetCode
void SetCode(Aws::String &&value)
Definition: RecordError.h:59
Aws::ServiceCatalog::Model::RecordError::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: RecordError.h:49
Aws::ServiceCatalog::Model::RecordError::WithDescription
RecordError & WithDescription(const Aws::String &value)
Definition: RecordError.h:110
Aws::ServiceCatalog::Model::RecordError::WithDescription
RecordError & WithDescription(const char *value)
Definition: RecordError.h:120
Aws::ServiceCatalog::Model::RecordError
Definition: RecordError.h:33
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::ServiceCatalog::Model::RecordError::SetCode
void SetCode(const Aws::String &value)
Definition: RecordError.h:54
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ServiceCatalog::Model::RecordError::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: RecordError.h:90
Aws::ServiceCatalog::Model::RecordError::SetDescription
void SetDescription(const char *value)
Definition: RecordError.h:105
Aws::ServiceCatalog::Model::RecordError::RecordError
RecordError()
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceCatalog::Model::RecordError::WithDescription
RecordError & WithDescription(Aws::String &&value)
Definition: RecordError.h:115
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ServiceCatalog_EXPORTS.h
Aws::ServiceCatalog::Model::RecordError::GetCode
const Aws::String & GetCode() const
Definition: RecordError.h:44
Aws::ServiceCatalog::Model::RecordError::SetDescription
void SetDescription(const Aws::String &value)
Definition: RecordError.h:95