AWS SDK for C++  1.9.103
AWS SDK for C++
LimitExceededException.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 Glacier
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetType() const{ return m_type; }
45 
49  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
50 
54  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
55 
59  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
60 
64  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
65 
69  inline LimitExceededException& WithType(const Aws::String& value) { SetType(value); return *this;}
70 
74  inline LimitExceededException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
75 
79  inline LimitExceededException& WithType(const char* value) { SetType(value); return *this;}
80 
81 
85  inline const Aws::String& GetCode() const{ return m_code; }
86 
90  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
91 
95  inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
96 
100  inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
101 
105  inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
106 
110  inline LimitExceededException& WithCode(const Aws::String& value) { SetCode(value); return *this;}
111 
115  inline LimitExceededException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
116 
120  inline LimitExceededException& WithCode(const char* value) { SetCode(value); return *this;}
121 
122 
127  inline const Aws::String& GetMessage() const{ return m_message; }
128 
133  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
134 
139  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
140 
145  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
146 
151  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
152 
157  inline LimitExceededException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
158 
163  inline LimitExceededException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
164 
169  inline LimitExceededException& WithMessage(const char* value) { SetMessage(value); return *this;}
170 
171  private:
172 
173  Aws::String m_type;
174  bool m_typeHasBeenSet;
175 
176  Aws::String m_code;
177  bool m_codeHasBeenSet;
178 
179  Aws::String m_message;
180  bool m_messageHasBeenSet;
181  };
182 
183 } // namespace Model
184 } // namespace Glacier
185 } // namespace Aws
Aws::Glacier::Model::LimitExceededException::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: LimitExceededException.h:90
Aws::Glacier::Model::LimitExceededException::WithCode
LimitExceededException & WithCode(const char *value)
Definition: LimitExceededException.h:120
Aws::Glacier::Model::LimitExceededException::WithType
LimitExceededException & WithType(Aws::String &&value)
Definition: LimitExceededException.h:74
Aws::Glacier::Model::LimitExceededException::SetMessage
void SetMessage(const Aws::String &value)
Definition: LimitExceededException.h:139
Aws::Glacier::Model::LimitExceededException::WithMessage
LimitExceededException & WithMessage(const char *value)
Definition: LimitExceededException.h:169
Aws::Glacier::Model::LimitExceededException::WithCode
LimitExceededException & WithCode(Aws::String &&value)
Definition: LimitExceededException.h:115
Aws::Glacier::Model::LimitExceededException::SetCode
void SetCode(const char *value)
Definition: LimitExceededException.h:105
Aws::Glacier::Model::LimitExceededException::WithMessage
LimitExceededException & WithMessage(const Aws::String &value)
Definition: LimitExceededException.h:157
Aws::Glacier::Model::LimitExceededException::WithCode
LimitExceededException & WithCode(const Aws::String &value)
Definition: LimitExceededException.h:110
Aws::Glacier::Model::LimitExceededException::SetType
void SetType(Aws::String &&value)
Definition: LimitExceededException.h:59
Aws::Glacier::Model::LimitExceededException::WithType
LimitExceededException & WithType(const char *value)
Definition: LimitExceededException.h:79
AWS_GLACIER_API
#define AWS_GLACIER_API
Definition: Glacier_EXPORTS.h:28
Aws::Glacier::Model::LimitExceededException::SetCode
void SetCode(Aws::String &&value)
Definition: LimitExceededException.h:100
Aws::Glacier::Model::LimitExceededException::operator=
LimitExceededException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Glacier::Model::LimitExceededException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Glacier::Model::LimitExceededException::SetMessage
void SetMessage(const char *value)
Definition: LimitExceededException.h:151
Aws::Glacier::Model::LimitExceededException::LimitExceededException
LimitExceededException(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Glacier::Model::LimitExceededException::WithType
LimitExceededException & WithType(const Aws::String &value)
Definition: LimitExceededException.h:69
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Glacier::Model::LimitExceededException::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: LimitExceededException.h:49
Aws::Glacier::Model::LimitExceededException::GetMessage
const Aws::String & GetMessage() const
Definition: LimitExceededException.h:127
Aws::Glacier::Model::LimitExceededException::SetCode
void SetCode(const Aws::String &value)
Definition: LimitExceededException.h:95
Aws::Glacier::Model::LimitExceededException::LimitExceededException
LimitExceededException()
Aws::Glacier::Model::LimitExceededException::WithMessage
LimitExceededException & WithMessage(Aws::String &&value)
Definition: LimitExceededException.h:163
Aws::Glacier::Model::LimitExceededException
Definition: LimitExceededException.h:33
Aws::Glacier::Model::LimitExceededException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: LimitExceededException.h:133
Aws::Glacier::Model::LimitExceededException::SetType
void SetType(const char *value)
Definition: LimitExceededException.h:64
Aws
Definition: AccessManagementClient.h:15
Aws::Glacier::Model::LimitExceededException::GetType
const Aws::String & GetType() const
Definition: LimitExceededException.h:44
Aws::Glacier::Model::LimitExceededException::GetCode
const Aws::String & GetCode() const
Definition: LimitExceededException.h:85
Aws::Glacier::Model::LimitExceededException::SetType
void SetType(const Aws::String &value)
Definition: LimitExceededException.h:54
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Glacier::Model::LimitExceededException::SetMessage
void SetMessage(Aws::String &&value)
Definition: LimitExceededException.h:145
Glacier_EXPORTS.h