AWS SDK for C++  1.9.104
AWS SDK for C++
InsufficientCapacityException.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 
34  {
35  public:
40 
41 
42 
43  inline const Aws::String& GetType() const{ return m_type; }
44 
45 
46  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
47 
48 
49  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
50 
51 
52  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
53 
54 
55  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
56 
57 
58  inline InsufficientCapacityException& WithType(const Aws::String& value) { SetType(value); return *this;}
59 
60 
61  inline InsufficientCapacityException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
62 
63 
64  inline InsufficientCapacityException& WithType(const char* value) { SetType(value); return *this;}
65 
66 
67 
68  inline const Aws::String& GetCode() const{ return m_code; }
69 
70 
71  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
72 
73 
74  inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
75 
76 
77  inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
78 
79 
80  inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
81 
82 
83  inline InsufficientCapacityException& WithCode(const Aws::String& value) { SetCode(value); return *this;}
84 
85 
86  inline InsufficientCapacityException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
87 
88 
89  inline InsufficientCapacityException& WithCode(const char* value) { SetCode(value); return *this;}
90 
91 
92 
93  inline const Aws::String& GetMessage() const{ return m_message; }
94 
95 
96  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
97 
98 
99  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
100 
101 
102  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
103 
104 
105  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
106 
107 
108  inline InsufficientCapacityException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
109 
110 
111  inline InsufficientCapacityException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
112 
113 
114  inline InsufficientCapacityException& WithMessage(const char* value) { SetMessage(value); return *this;}
115 
116  private:
117 
118  Aws::String m_type;
119  bool m_typeHasBeenSet;
120 
121  Aws::String m_code;
122  bool m_codeHasBeenSet;
123 
124  Aws::String m_message;
125  bool m_messageHasBeenSet;
126  };
127 
128 } // namespace Model
129 } // namespace Glacier
130 } // namespace Aws
Aws::Glacier::Model::InsufficientCapacityException::WithType
InsufficientCapacityException & WithType(const Aws::String &value)
Definition: InsufficientCapacityException.h:58
Aws::Glacier::Model::InsufficientCapacityException::GetCode
const Aws::String & GetCode() const
Definition: InsufficientCapacityException.h:68
Aws::Glacier::Model::InsufficientCapacityException::SetType
void SetType(const Aws::String &value)
Definition: InsufficientCapacityException.h:49
Aws::Glacier::Model::InsufficientCapacityException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: InsufficientCapacityException.h:96
Aws::Glacier::Model::InsufficientCapacityException::SetCode
void SetCode(Aws::String &&value)
Definition: InsufficientCapacityException.h:77
Aws::Glacier::Model::InsufficientCapacityException::GetMessage
const Aws::String & GetMessage() const
Definition: InsufficientCapacityException.h:93
Aws::Glacier::Model::InsufficientCapacityException::SetCode
void SetCode(const Aws::String &value)
Definition: InsufficientCapacityException.h:74
Aws::Glacier::Model::InsufficientCapacityException::SetCode
void SetCode(const char *value)
Definition: InsufficientCapacityException.h:80
Aws::Glacier::Model::InsufficientCapacityException::GetType
const Aws::String & GetType() const
Definition: InsufficientCapacityException.h:43
Aws::Glacier::Model::InsufficientCapacityException::WithType
InsufficientCapacityException & WithType(Aws::String &&value)
Definition: InsufficientCapacityException.h:61
Aws::Glacier::Model::InsufficientCapacityException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Glacier::Model::InsufficientCapacityException::WithMessage
InsufficientCapacityException & WithMessage(const char *value)
Definition: InsufficientCapacityException.h:114
Aws::Glacier::Model::InsufficientCapacityException::WithCode
InsufficientCapacityException & WithCode(const Aws::String &value)
Definition: InsufficientCapacityException.h:83
AWS_GLACIER_API
#define AWS_GLACIER_API
Definition: Glacier_EXPORTS.h:28
Aws::Glacier::Model::InsufficientCapacityException::WithType
InsufficientCapacityException & WithType(const char *value)
Definition: InsufficientCapacityException.h:64
Aws::Glacier::Model::InsufficientCapacityException::WithCode
InsufficientCapacityException & WithCode(Aws::String &&value)
Definition: InsufficientCapacityException.h:86
Aws::Glacier::Model::InsufficientCapacityException::InsufficientCapacityException
InsufficientCapacityException(Aws::Utils::Json::JsonView jsonValue)
Aws::Glacier::Model::InsufficientCapacityException::operator=
InsufficientCapacityException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Glacier::Model::InsufficientCapacityException::SetMessage
void SetMessage(const Aws::String &value)
Definition: InsufficientCapacityException.h:99
Aws::Glacier::Model::InsufficientCapacityException::SetType
void SetType(Aws::String &&value)
Definition: InsufficientCapacityException.h:52
Aws::Glacier::Model::InsufficientCapacityException::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: InsufficientCapacityException.h:71
Aws::Glacier::Model::InsufficientCapacityException::SetType
void SetType(const char *value)
Definition: InsufficientCapacityException.h:55
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Glacier::Model::InsufficientCapacityException::WithCode
InsufficientCapacityException & WithCode(const char *value)
Definition: InsufficientCapacityException.h:89
Aws::Glacier::Model::InsufficientCapacityException::SetMessage
void SetMessage(Aws::String &&value)
Definition: InsufficientCapacityException.h:102
Aws::Glacier::Model::InsufficientCapacityException::WithMessage
InsufficientCapacityException & WithMessage(Aws::String &&value)
Definition: InsufficientCapacityException.h:111
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Glacier::Model::InsufficientCapacityException::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: InsufficientCapacityException.h:46
Aws::Glacier::Model::InsufficientCapacityException::InsufficientCapacityException
InsufficientCapacityException()
Aws::Glacier::Model::InsufficientCapacityException
Definition: InsufficientCapacityException.h:34
Aws::Glacier::Model::InsufficientCapacityException::WithMessage
InsufficientCapacityException & WithMessage(const Aws::String &value)
Definition: InsufficientCapacityException.h:108
Aws::Glacier::Model::InsufficientCapacityException::SetMessage
void SetMessage(const char *value)
Definition: InsufficientCapacityException.h:105
Glacier_EXPORTS.h