AWS SDK for C++  1.9.158
AWS SDK for C++
RenderingError.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 SageMaker
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 RenderingError& WithCode(const Aws::String& value) { SetCode(value); return *this;}
70 
74  inline RenderingError& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
75 
79  inline RenderingError& 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 RenderingError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
111 
115  inline RenderingError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
116 
120  inline RenderingError& 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 SageMaker
133 } // namespace Aws
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::RenderingError::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: RenderingError.h:90
SageMaker_EXPORTS.h
Aws::SageMaker::Model::RenderingError::SetMessage
void SetMessage(Aws::String &&value)
Definition: RenderingError.h:100
Aws::SageMaker::Model::RenderingError::WithMessage
RenderingError & WithMessage(Aws::String &&value)
Definition: RenderingError.h:115
Aws::SageMaker::Model::RenderingError::RenderingError
RenderingError()
Aws::SageMaker::Model::RenderingError::SetCode
void SetCode(const char *value)
Definition: RenderingError.h:64
Aws::SageMaker::Model::RenderingError::WithMessage
RenderingError & WithMessage(const char *value)
Definition: RenderingError.h:120
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::RenderingError::SetMessage
void SetMessage(const Aws::String &value)
Definition: RenderingError.h:95
Aws::SageMaker::Model::RenderingError::SetCode
void SetCode(const Aws::String &value)
Definition: RenderingError.h:54
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SageMaker::Model::RenderingError::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SageMaker::Model::RenderingError::SetCode
void SetCode(Aws::String &&value)
Definition: RenderingError.h:59
Aws::SageMaker::Model::RenderingError::GetCode
const Aws::String & GetCode() const
Definition: RenderingError.h:44
Aws::SageMaker::Model::RenderingError::operator=
RenderingError & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::RenderingError::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: RenderingError.h:49
Aws::SageMaker::Model::RenderingError::GetMessage
const Aws::String & GetMessage() const
Definition: RenderingError.h:85
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::RenderingError::WithMessage
RenderingError & WithMessage(const Aws::String &value)
Definition: RenderingError.h:110
Aws
Definition: AccessManagementClient.h:15
Aws::SageMaker::Model::RenderingError::WithCode
RenderingError & WithCode(const char *value)
Definition: RenderingError.h:79
Aws::SageMaker::Model::RenderingError::WithCode
RenderingError & WithCode(const Aws::String &value)
Definition: RenderingError.h:69
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::RenderingError::SetMessage
void SetMessage(const char *value)
Definition: RenderingError.h:105
Aws::SageMaker::Model::RenderingError::RenderingError
RenderingError(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::RenderingError
Definition: RenderingError.h:33
Aws::SageMaker::Model::RenderingError::WithCode
RenderingError & WithCode(Aws::String &&value)
Definition: RenderingError.h:74