AWS SDK for C++  1.9.160
AWS SDK for C++
AnalysisError.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace QuickSight
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
44  inline const AnalysisErrorType& GetType() const{ return m_type; }
45 
49  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
50 
54  inline void SetType(const AnalysisErrorType& value) { m_typeHasBeenSet = true; m_type = value; }
55 
59  inline void SetType(AnalysisErrorType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
60 
64  inline AnalysisError& WithType(const AnalysisErrorType& value) { SetType(value); return *this;}
65 
69  inline AnalysisError& WithType(AnalysisErrorType&& value) { SetType(std::move(value)); return *this;}
70 
71 
75  inline const Aws::String& GetMessage() const{ return m_message; }
76 
80  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
81 
85  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
86 
90  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
91 
95  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
96 
100  inline AnalysisError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
101 
105  inline AnalysisError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
106 
110  inline AnalysisError& WithMessage(const char* value) { SetMessage(value); return *this;}
111 
112  private:
113 
114  AnalysisErrorType m_type;
115  bool m_typeHasBeenSet;
116 
117  Aws::String m_message;
118  bool m_messageHasBeenSet;
119  };
120 
121 } // namespace Model
122 } // namespace QuickSight
123 } // namespace Aws
Aws::QuickSight::Model::AnalysisError::AnalysisError
AnalysisError(Aws::Utils::Json::JsonView jsonValue)
Aws::QuickSight::Model::AnalysisError::WithMessage
AnalysisError & WithMessage(Aws::String &&value)
Definition: AnalysisError.h:105
QuickSight_EXPORTS.h
Aws::QuickSight::Model::AnalysisError::AnalysisError
AnalysisError()
Aws::QuickSight::Model::AnalysisError::WithType
AnalysisError & WithType(const AnalysisErrorType &value)
Definition: AnalysisError.h:64
Aws::QuickSight::Model::AnalysisError::SetType
void SetType(AnalysisErrorType &&value)
Definition: AnalysisError.h:59
Aws::QuickSight::Model::AnalysisError::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::QuickSight::Model::AnalysisError::SetMessage
void SetMessage(const Aws::String &value)
Definition: AnalysisError.h:85
Aws::QuickSight::Model::AnalysisError::SetMessage
void SetMessage(Aws::String &&value)
Definition: AnalysisError.h:90
Aws::QuickSight::Model::AnalysisError::operator=
AnalysisError & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::QuickSight::Model::AnalysisError::SetMessage
void SetMessage(const char *value)
Definition: AnalysisError.h:95
Aws::QuickSight::Model::AnalysisErrorType
AnalysisErrorType
Definition: AnalysisErrorType.h:17
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::QuickSight::Model::AnalysisError::WithMessage
AnalysisError & WithMessage(const char *value)
Definition: AnalysisError.h:110
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::QuickSight::Model::AnalysisError::GetType
const AnalysisErrorType & GetType() const
Definition: AnalysisError.h:44
Aws::QuickSight::Model::AnalysisError::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: AnalysisError.h:49
Aws::QuickSight::Model::AnalysisError::WithMessage
AnalysisError & WithMessage(const Aws::String &value)
Definition: AnalysisError.h:100
Aws::QuickSight::Model::AnalysisError::WithType
AnalysisError & WithType(AnalysisErrorType &&value)
Definition: AnalysisError.h:69
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
AWS_QUICKSIGHT_API
#define AWS_QUICKSIGHT_API
Definition: QuickSight_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::QuickSight::Model::AnalysisError
Definition: AnalysisError.h:33
Aws::QuickSight::Model::AnalysisError::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: AnalysisError.h:80
AnalysisErrorType.h
Aws::QuickSight::Model::AnalysisError::SetType
void SetType(const AnalysisErrorType &value)
Definition: AnalysisError.h:54
Aws::QuickSight::Model::AnalysisError::GetMessage
const Aws::String & GetMessage() const
Definition: AnalysisError.h:75