AWS SDK for C++  1.9.109
AWS SDK for C++
IdempotentParameterMismatchException.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 MachineLearning
22 {
23 namespace Model
24 {
25 
34  {
35  public:
40 
41 
42 
43  inline const Aws::String& GetMessage() const{ return m_message; }
44 
45 
46  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
47 
48 
49  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
50 
51 
52  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
53 
54 
55  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
56 
57 
58  inline IdempotentParameterMismatchException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
59 
60 
61  inline IdempotentParameterMismatchException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
62 
63 
64  inline IdempotentParameterMismatchException& WithMessage(const char* value) { SetMessage(value); return *this;}
65 
66 
67 
68  inline int GetCode() const{ return m_code; }
69 
70 
71  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
72 
73 
74  inline void SetCode(int value) { m_codeHasBeenSet = true; m_code = value; }
75 
76 
77  inline IdempotentParameterMismatchException& WithCode(int value) { SetCode(value); return *this;}
78 
79  private:
80 
81  Aws::String m_message;
82  bool m_messageHasBeenSet;
83 
84  int m_code;
85  bool m_codeHasBeenSet;
86  };
87 
88 } // namespace Model
89 } // namespace MachineLearning
90 } // namespace Aws
Aws::MachineLearning::Model::IdempotentParameterMismatchException::IdempotentParameterMismatchException
IdempotentParameterMismatchException(Aws::Utils::Json::JsonView jsonValue)
Aws::MachineLearning::Model::IdempotentParameterMismatchException::SetMessage
void SetMessage(Aws::String &&value)
Definition: IdempotentParameterMismatchException.h:52
MachineLearning_EXPORTS.h
Aws::MachineLearning::Model::IdempotentParameterMismatchException::WithCode
IdempotentParameterMismatchException & WithCode(int value)
Definition: IdempotentParameterMismatchException.h:77
Aws::MachineLearning::Model::IdempotentParameterMismatchException::WithMessage
IdempotentParameterMismatchException & WithMessage(const Aws::String &value)
Definition: IdempotentParameterMismatchException.h:58
Aws::MachineLearning::Model::IdempotentParameterMismatchException::WithMessage
IdempotentParameterMismatchException & WithMessage(const char *value)
Definition: IdempotentParameterMismatchException.h:64
AWS_MACHINELEARNING_API
#define AWS_MACHINELEARNING_API
Definition: MachineLearning_EXPORTS.h:28
Aws::MachineLearning::Model::IdempotentParameterMismatchException::IdempotentParameterMismatchException
IdempotentParameterMismatchException()
Aws::MachineLearning::Model::IdempotentParameterMismatchException::SetMessage
void SetMessage(const char *value)
Definition: IdempotentParameterMismatchException.h:55
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::MachineLearning::Model::IdempotentParameterMismatchException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: IdempotentParameterMismatchException.h:46
Aws::MachineLearning::Model::IdempotentParameterMismatchException::operator=
IdempotentParameterMismatchException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::MachineLearning::Model::IdempotentParameterMismatchException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::MachineLearning::Model::IdempotentParameterMismatchException::SetMessage
void SetMessage(const Aws::String &value)
Definition: IdempotentParameterMismatchException.h:49
Aws::MachineLearning::Model::IdempotentParameterMismatchException::GetMessage
const Aws::String & GetMessage() const
Definition: IdempotentParameterMismatchException.h:43
Aws::MachineLearning::Model::IdempotentParameterMismatchException::SetCode
void SetCode(int value)
Definition: IdempotentParameterMismatchException.h:74
Aws::MachineLearning::Model::IdempotentParameterMismatchException::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: IdempotentParameterMismatchException.h:71
Aws
Definition: AccessManagementClient.h:15
Aws::MachineLearning::Model::IdempotentParameterMismatchException
Definition: IdempotentParameterMismatchException.h:34
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MachineLearning::Model::IdempotentParameterMismatchException::GetCode
int GetCode() const
Definition: IdempotentParameterMismatchException.h:68
Aws::MachineLearning::Model::IdempotentParameterMismatchException::WithMessage
IdempotentParameterMismatchException & WithMessage(Aws::String &&value)
Definition: IdempotentParameterMismatchException.h:61