AWS SDK for C++  1.9.20
AWS SDK for C++
BatchGetVariableError.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 FraudDetector
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetName() const{ return m_name; }
45 
49  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 
54  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
59  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 
64  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 
69  inline BatchGetVariableError& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
74  inline BatchGetVariableError& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
75 
79  inline BatchGetVariableError& WithName(const char* value) { SetName(value); return *this;}
80 
81 
85  inline int GetCode() const{ return m_code; }
86 
90  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
91 
95  inline void SetCode(int value) { m_codeHasBeenSet = true; m_code = value; }
96 
100  inline BatchGetVariableError& WithCode(int value) { SetCode(value); return *this;}
101 
102 
106  inline const Aws::String& GetMessage() const{ return m_message; }
107 
111  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
112 
116  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
117 
121  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
122 
126  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
127 
131  inline BatchGetVariableError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
132 
136  inline BatchGetVariableError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
137 
141  inline BatchGetVariableError& WithMessage(const char* value) { SetMessage(value); return *this;}
142 
143  private:
144 
145  Aws::String m_name;
146  bool m_nameHasBeenSet;
147 
148  int m_code;
149  bool m_codeHasBeenSet;
150 
151  Aws::String m_message;
152  bool m_messageHasBeenSet;
153  };
154 
155 } // namespace Model
156 } // namespace FraudDetector
157 } // namespace Aws
Aws::FraudDetector::Model::BatchGetVariableError::NameHasBeenSet
bool NameHasBeenSet() const
Definition: BatchGetVariableError.h:49
Aws::FraudDetector::Model::BatchGetVariableError::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: BatchGetVariableError.h:90
FraudDetector_EXPORTS.h
Aws::FraudDetector::Model::BatchGetVariableError::BatchGetVariableError
BatchGetVariableError()
Aws::FraudDetector::Model::BatchGetVariableError::WithName
BatchGetVariableError & WithName(Aws::String &&value)
Definition: BatchGetVariableError.h:74
Aws::FraudDetector::Model::BatchGetVariableError::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::FraudDetector::Model::BatchGetVariableError::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: BatchGetVariableError.h:111
Aws::FraudDetector::Model::BatchGetVariableError::SetCode
void SetCode(int value)
Definition: BatchGetVariableError.h:95
AWS_FRAUDDETECTOR_API
#define AWS_FRAUDDETECTOR_API
Definition: FraudDetector_EXPORTS.h:28
Aws::FraudDetector::Model::BatchGetVariableError::SetMessage
void SetMessage(Aws::String &&value)
Definition: BatchGetVariableError.h:121
Aws::FraudDetector::Model::BatchGetVariableError::GetName
const Aws::String & GetName() const
Definition: BatchGetVariableError.h:44
Aws::FraudDetector::Model::BatchGetVariableError::SetMessage
void SetMessage(const char *value)
Definition: BatchGetVariableError.h:126
Aws::FraudDetector::Model::BatchGetVariableError::WithMessage
BatchGetVariableError & WithMessage(const Aws::String &value)
Definition: BatchGetVariableError.h:131
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::FraudDetector::Model::BatchGetVariableError::WithName
BatchGetVariableError & WithName(const Aws::String &value)
Definition: BatchGetVariableError.h:69
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::FraudDetector::Model::BatchGetVariableError::GetMessage
const Aws::String & GetMessage() const
Definition: BatchGetVariableError.h:106
Aws::FraudDetector::Model::BatchGetVariableError
Definition: BatchGetVariableError.h:33
Aws::FraudDetector::Model::BatchGetVariableError::SetName
void SetName(Aws::String &&value)
Definition: BatchGetVariableError.h:59
Aws::FraudDetector::Model::BatchGetVariableError::WithName
BatchGetVariableError & WithName(const char *value)
Definition: BatchGetVariableError.h:79
Aws::FraudDetector::Model::BatchGetVariableError::WithMessage
BatchGetVariableError & WithMessage(const char *value)
Definition: BatchGetVariableError.h:141
Aws::FraudDetector::Model::BatchGetVariableError::WithMessage
BatchGetVariableError & WithMessage(Aws::String &&value)
Definition: BatchGetVariableError.h:136
Aws
Definition: AccessManagementClient.h:15
Aws::FraudDetector::Model::BatchGetVariableError::SetName
void SetName(const Aws::String &value)
Definition: BatchGetVariableError.h:54
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::FraudDetector::Model::BatchGetVariableError::SetName
void SetName(const char *value)
Definition: BatchGetVariableError.h:64
Aws::FraudDetector::Model::BatchGetVariableError::GetCode
int GetCode() const
Definition: BatchGetVariableError.h:85
Aws::FraudDetector::Model::BatchGetVariableError::WithCode
BatchGetVariableError & WithCode(int value)
Definition: BatchGetVariableError.h:100
Aws::FraudDetector::Model::BatchGetVariableError::operator=
BatchGetVariableError & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::FraudDetector::Model::BatchGetVariableError::BatchGetVariableError
BatchGetVariableError(Aws::Utils::Json::JsonView jsonValue)
Aws::FraudDetector::Model::BatchGetVariableError::SetMessage
void SetMessage(const Aws::String &value)
Definition: BatchGetVariableError.h:116