AWS SDK for C++  1.9.161
AWS SDK for C++
NamespaceError.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 NamespaceErrorType& GetType() const{ return m_type; }
45 
49  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
50 
54  inline void SetType(const NamespaceErrorType& value) { m_typeHasBeenSet = true; m_type = value; }
55 
59  inline void SetType(NamespaceErrorType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
60 
64  inline NamespaceError& WithType(const NamespaceErrorType& value) { SetType(value); return *this;}
65 
69  inline NamespaceError& WithType(NamespaceErrorType&& 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 NamespaceError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
101 
105  inline NamespaceError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
106 
110  inline NamespaceError& WithMessage(const char* value) { SetMessage(value); return *this;}
111 
112  private:
113 
114  NamespaceErrorType 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::NamespaceError::operator=
NamespaceError & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::QuickSight::Model::NamespaceError::SetType
void SetType(const NamespaceErrorType &value)
Definition: NamespaceError.h:54
QuickSight_EXPORTS.h
Aws::QuickSight::Model::NamespaceError::WithMessage
NamespaceError & WithMessage(Aws::String &&value)
Definition: NamespaceError.h:105
NamespaceErrorType.h
Aws::QuickSight::Model::NamespaceError::SetMessage
void SetMessage(const char *value)
Definition: NamespaceError.h:95
Aws::QuickSight::Model::NamespaceError::WithMessage
NamespaceError & WithMessage(const char *value)
Definition: NamespaceError.h:110
Aws::QuickSight::Model::NamespaceError
Definition: NamespaceError.h:33
Aws::QuickSight::Model::NamespaceError::GetType
const NamespaceErrorType & GetType() const
Definition: NamespaceError.h:44
Aws::QuickSight::Model::NamespaceError::SetType
void SetType(NamespaceErrorType &&value)
Definition: NamespaceError.h:59
Aws::QuickSight::Model::NamespaceError::NamespaceError
NamespaceError(Aws::Utils::Json::JsonView jsonValue)
Aws::QuickSight::Model::NamespaceError::WithMessage
NamespaceError & WithMessage(const Aws::String &value)
Definition: NamespaceError.h:100
Aws::QuickSight::Model::NamespaceError::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: NamespaceError.h:49
Aws::QuickSight::Model::NamespaceError::WithType
NamespaceError & WithType(const NamespaceErrorType &value)
Definition: NamespaceError.h:64
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::QuickSight::Model::NamespaceError::GetMessage
const Aws::String & GetMessage() const
Definition: NamespaceError.h:75
Aws::QuickSight::Model::NamespaceError::SetMessage
void SetMessage(Aws::String &&value)
Definition: NamespaceError.h:90
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::QuickSight::Model::NamespaceErrorType
NamespaceErrorType
Definition: NamespaceErrorType.h:17
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::QuickSight::Model::NamespaceError::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::QuickSight::Model::NamespaceError::SetMessage
void SetMessage(const Aws::String &value)
Definition: NamespaceError.h:85
Aws::QuickSight::Model::NamespaceError::WithType
NamespaceError & WithType(NamespaceErrorType &&value)
Definition: NamespaceError.h:69
Aws::QuickSight::Model::NamespaceError::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: NamespaceError.h:80
Aws::QuickSight::Model::NamespaceError::NamespaceError
NamespaceError()