AWS SDK for C++  1.9.108
AWS SDK for C++
ErrorDetails.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 CodePipeline
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 ErrorDetails& WithCode(const Aws::String& value) { SetCode(value); return *this;}
70 
74  inline ErrorDetails& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
75 
79  inline ErrorDetails& WithCode(const char* value) { SetCode(value); return *this;}
80 
81 
85  inline const Aws::String& GetMessage() const{ return m_message; }
86 
90  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
91 
95  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
96 
100  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
101 
105  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
106 
110  inline ErrorDetails& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
111 
115  inline ErrorDetails& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
116 
120  inline ErrorDetails& WithMessage(const char* value) { SetMessage(value); return *this;}
121 
122  private:
123 
124  Aws::String m_code;
125  bool m_codeHasBeenSet;
126 
127  Aws::String m_message;
128  bool m_messageHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace CodePipeline
133 } // namespace Aws
Aws::CodePipeline::Model::ErrorDetails::WithCode
ErrorDetails & WithCode(Aws::String &&value)
Definition: ErrorDetails.h:74
AWS_CODEPIPELINE_API
#define AWS_CODEPIPELINE_API
Definition: CodePipeline_EXPORTS.h:28
Aws::CodePipeline::Model::ErrorDetails::WithMessage
ErrorDetails & WithMessage(Aws::String &&value)
Definition: ErrorDetails.h:115
Aws::CodePipeline::Model::ErrorDetails::WithMessage
ErrorDetails & WithMessage(const Aws::String &value)
Definition: ErrorDetails.h:110
Aws::CodePipeline::Model::ErrorDetails::SetMessage
void SetMessage(const Aws::String &value)
Definition: ErrorDetails.h:95
Aws::CodePipeline::Model::ErrorDetails
Definition: ErrorDetails.h:33
Aws::CodePipeline::Model::ErrorDetails::WithCode
ErrorDetails & WithCode(const char *value)
Definition: ErrorDetails.h:79
Aws::CodePipeline::Model::ErrorDetails::GetCode
const Aws::String & GetCode() const
Definition: ErrorDetails.h:44
CodePipeline_EXPORTS.h
Aws::CodePipeline::Model::ErrorDetails::SetMessage
void SetMessage(const char *value)
Definition: ErrorDetails.h:105
Aws::CodePipeline::Model::ErrorDetails::SetCode
void SetCode(Aws::String &&value)
Definition: ErrorDetails.h:59
Aws::CodePipeline::Model::ErrorDetails::SetMessage
void SetMessage(Aws::String &&value)
Definition: ErrorDetails.h:100
Aws::CodePipeline::Model::ErrorDetails::SetCode
void SetCode(const char *value)
Definition: ErrorDetails.h:64
Aws::CodePipeline::Model::ErrorDetails::WithMessage
ErrorDetails & WithMessage(const char *value)
Definition: ErrorDetails.h:120
Aws::CodePipeline::Model::ErrorDetails::GetMessage
const Aws::String & GetMessage() const
Definition: ErrorDetails.h:85
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::CodePipeline::Model::ErrorDetails::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ErrorDetails.h:90
Aws::CodePipeline::Model::ErrorDetails::WithCode
ErrorDetails & WithCode(const Aws::String &value)
Definition: ErrorDetails.h:69
Aws::CodePipeline::Model::ErrorDetails::SetCode
void SetCode(const Aws::String &value)
Definition: ErrorDetails.h:54
Aws::CodePipeline::Model::ErrorDetails::operator=
ErrorDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CodePipeline::Model::ErrorDetails::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: ErrorDetails.h:49
Aws
Definition: AccessManagementClient.h:15
Aws::CodePipeline::Model::ErrorDetails::ErrorDetails
ErrorDetails(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodePipeline::Model::ErrorDetails::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CodePipeline::Model::ErrorDetails::ErrorDetails
ErrorDetails()