AWS SDK for C++  1.9.20
AWS SDK for C++
PreconditionFailedException.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 Lambda
22 {
23 namespace Model
24 {
25 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetType() const{ return m_type; }
47 
51  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
52 
56  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
57 
61  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
62 
66  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
67 
71  inline PreconditionFailedException& WithType(const Aws::String& value) { SetType(value); return *this;}
72 
76  inline PreconditionFailedException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
77 
81  inline PreconditionFailedException& WithType(const char* value) { SetType(value); return *this;}
82 
83 
87  inline const Aws::String& GetMessage() const{ return m_message; }
88 
92  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
93 
97  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
98 
102  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
103 
107  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
108 
112  inline PreconditionFailedException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
113 
117  inline PreconditionFailedException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
118 
122  inline PreconditionFailedException& WithMessage(const char* value) { SetMessage(value); return *this;}
123 
124  private:
125 
126  Aws::String m_type;
127  bool m_typeHasBeenSet;
128 
129  Aws::String m_message;
130  bool m_messageHasBeenSet;
131  };
132 
133 } // namespace Model
134 } // namespace Lambda
135 } // namespace Aws
Aws::Lambda::Model::PreconditionFailedException::SetType
void SetType(const char *value)
Definition: PreconditionFailedException.h:66
Aws::Lambda::Model::PreconditionFailedException::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: PreconditionFailedException.h:51
Aws::Lambda::Model::PreconditionFailedException::WithMessage
PreconditionFailedException & WithMessage(const char *value)
Definition: PreconditionFailedException.h:122
Aws::Lambda::Model::PreconditionFailedException::WithMessage
PreconditionFailedException & WithMessage(const Aws::String &value)
Definition: PreconditionFailedException.h:112
Aws::Lambda::Model::PreconditionFailedException::GetMessage
const Aws::String & GetMessage() const
Definition: PreconditionFailedException.h:87
Aws::Lambda::Model::PreconditionFailedException::SetMessage
void SetMessage(const Aws::String &value)
Definition: PreconditionFailedException.h:97
Aws::Lambda::Model::PreconditionFailedException::PreconditionFailedException
PreconditionFailedException(Aws::Utils::Json::JsonView jsonValue)
AWS_LAMBDA_API
#define AWS_LAMBDA_API
Definition: Lambda_EXPORTS.h:28
Aws::Lambda::Model::PreconditionFailedException::SetType
void SetType(const Aws::String &value)
Definition: PreconditionFailedException.h:56
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Lambda::Model::PreconditionFailedException::SetMessage
void SetMessage(Aws::String &&value)
Definition: PreconditionFailedException.h:102
Aws::Lambda::Model::PreconditionFailedException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: PreconditionFailedException.h:92
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Lambda::Model::PreconditionFailedException::WithType
PreconditionFailedException & WithType(const Aws::String &value)
Definition: PreconditionFailedException.h:71
Aws::Lambda::Model::PreconditionFailedException::PreconditionFailedException
PreconditionFailedException()
Aws::CodePipeline::Model::ExecutorType::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Lambda::Model::PreconditionFailedException::SetType
void SetType(Aws::String &&value)
Definition: PreconditionFailedException.h:61
Aws::Lambda::Model::PreconditionFailedException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lambda::Model::PreconditionFailedException::WithMessage
PreconditionFailedException & WithMessage(Aws::String &&value)
Definition: PreconditionFailedException.h:117
Aws::Lambda::Model::PreconditionFailedException::WithType
PreconditionFailedException & WithType(Aws::String &&value)
Definition: PreconditionFailedException.h:76
Aws::Lambda::Model::PreconditionFailedException::operator=
PreconditionFailedException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lambda::Model::PreconditionFailedException::SetMessage
void SetMessage(const char *value)
Definition: PreconditionFailedException.h:107
Aws::Lambda::Model::PreconditionFailedException
Definition: PreconditionFailedException.h:35
Aws::Lambda::Model::PreconditionFailedException::GetType
const Aws::String & GetType() const
Definition: PreconditionFailedException.h:46
Lambda_EXPORTS.h
Aws::Lambda::Model::PreconditionFailedException::WithType
PreconditionFailedException & WithType(const char *value)
Definition: PreconditionFailedException.h:81