AWS SDK for C++  1.9.103
AWS SDK for C++
InvalidParameterValueException.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 InvalidParameterValueException& WithType(const Aws::String& value) { SetType(value); return *this;}
70 
74  inline InvalidParameterValueException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
75 
79  inline InvalidParameterValueException& 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 InvalidParameterValueException& WithCode(const Aws::String& value) { SetCode(value); return *this;}
111 
115  inline InvalidParameterValueException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
116 
120  inline InvalidParameterValueException& WithCode(const char* value) { SetCode(value); return *this;}
121 
122 
126  inline const Aws::String& GetMessage() const{ return m_message; }
127 
131  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
132 
136  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
137 
141  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
142 
146  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
147 
151  inline InvalidParameterValueException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
152 
156  inline InvalidParameterValueException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
157 
161  inline InvalidParameterValueException& WithMessage(const char* value) { SetMessage(value); return *this;}
162 
163  private:
164 
165  Aws::String m_type;
166  bool m_typeHasBeenSet;
167 
168  Aws::String m_code;
169  bool m_codeHasBeenSet;
170 
171  Aws::String m_message;
172  bool m_messageHasBeenSet;
173  };
174 
175 } // namespace Model
176 } // namespace Glacier
177 } // namespace Aws
Aws::Glacier::Model::InvalidParameterValueException::SetType
void SetType(Aws::String &&value)
Definition: InvalidParameterValueException.h:59
Aws::Glacier::Model::InvalidParameterValueException::GetCode
const Aws::String & GetCode() const
Definition: InvalidParameterValueException.h:85
Aws::Glacier::Model::InvalidParameterValueException::WithType
InvalidParameterValueException & WithType(const char *value)
Definition: InvalidParameterValueException.h:79
Aws::Glacier::Model::InvalidParameterValueException::SetType
void SetType(const Aws::String &value)
Definition: InvalidParameterValueException.h:54
Aws::Glacier::Model::InvalidParameterValueException::SetMessage
void SetMessage(Aws::String &&value)
Definition: InvalidParameterValueException.h:141
Aws::Glacier::Model::InvalidParameterValueException::WithCode
InvalidParameterValueException & WithCode(const Aws::String &value)
Definition: InvalidParameterValueException.h:110
Aws::Glacier::Model::InvalidParameterValueException
Definition: InvalidParameterValueException.h:33
Aws::Glacier::Model::InvalidParameterValueException::SetType
void SetType(const char *value)
Definition: InvalidParameterValueException.h:64
Aws::Glacier::Model::InvalidParameterValueException::WithMessage
InvalidParameterValueException & WithMessage(const char *value)
Definition: InvalidParameterValueException.h:161
AWS_GLACIER_API
#define AWS_GLACIER_API
Definition: Glacier_EXPORTS.h:28
Aws::Glacier::Model::InvalidParameterValueException::WithMessage
InvalidParameterValueException & WithMessage(Aws::String &&value)
Definition: InvalidParameterValueException.h:156
Aws::Glacier::Model::InvalidParameterValueException::SetCode
void SetCode(Aws::String &&value)
Definition: InvalidParameterValueException.h:100
Aws::Glacier::Model::InvalidParameterValueException::WithMessage
InvalidParameterValueException & WithMessage(const Aws::String &value)
Definition: InvalidParameterValueException.h:151
Aws::Glacier::Model::InvalidParameterValueException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Glacier::Model::InvalidParameterValueException::GetType
const Aws::String & GetType() const
Definition: InvalidParameterValueException.h:44
Aws::Glacier::Model::InvalidParameterValueException::SetCode
void SetCode(const Aws::String &value)
Definition: InvalidParameterValueException.h:95
Aws::Glacier::Model::InvalidParameterValueException::SetMessage
void SetMessage(const Aws::String &value)
Definition: InvalidParameterValueException.h:136
Aws::Glacier::Model::InvalidParameterValueException::WithCode
InvalidParameterValueException & WithCode(Aws::String &&value)
Definition: InvalidParameterValueException.h:115
Aws::Glacier::Model::InvalidParameterValueException::InvalidParameterValueException
InvalidParameterValueException()
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Glacier::Model::InvalidParameterValueException::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: InvalidParameterValueException.h:49
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Glacier::Model::InvalidParameterValueException::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: InvalidParameterValueException.h:90
Aws::Glacier::Model::InvalidParameterValueException::WithCode
InvalidParameterValueException & WithCode(const char *value)
Definition: InvalidParameterValueException.h:120
Aws::Glacier::Model::InvalidParameterValueException::SetCode
void SetCode(const char *value)
Definition: InvalidParameterValueException.h:105
Aws
Definition: AccessManagementClient.h:15
Aws::Glacier::Model::InvalidParameterValueException::SetMessage
void SetMessage(const char *value)
Definition: InvalidParameterValueException.h:146
Aws::Glacier::Model::InvalidParameterValueException::WithType
InvalidParameterValueException & WithType(const Aws::String &value)
Definition: InvalidParameterValueException.h:69
Aws::Glacier::Model::InvalidParameterValueException::GetMessage
const Aws::String & GetMessage() const
Definition: InvalidParameterValueException.h:126
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Glacier::Model::InvalidParameterValueException::operator=
InvalidParameterValueException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Glacier::Model::InvalidParameterValueException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: InvalidParameterValueException.h:131
Aws::Glacier::Model::InvalidParameterValueException::InvalidParameterValueException
InvalidParameterValueException(Aws::Utils::Json::JsonView jsonValue)
Aws::Glacier::Model::InvalidParameterValueException::WithType
InvalidParameterValueException & WithType(Aws::String &&value)
Definition: InvalidParameterValueException.h:74
Glacier_EXPORTS.h