AWS SDK for C++  1.9.104
AWS SDK for C++
PolicyEnforcedException.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 
45  inline const Aws::String& GetType() const{ return m_type; }
46 
50  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
51 
55  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
56 
60  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
61 
65  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
66 
70  inline PolicyEnforcedException& WithType(const Aws::String& value) { SetType(value); return *this;}
71 
75  inline PolicyEnforcedException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
76 
80  inline PolicyEnforcedException& WithType(const char* value) { SetType(value); return *this;}
81 
82 
86  inline const Aws::String& GetCode() const{ return m_code; }
87 
91  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
92 
96  inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
97 
101  inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
102 
106  inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
107 
111  inline PolicyEnforcedException& WithCode(const Aws::String& value) { SetCode(value); return *this;}
112 
116  inline PolicyEnforcedException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
117 
121  inline PolicyEnforcedException& WithCode(const char* value) { SetCode(value); return *this;}
122 
123 
127  inline const Aws::String& GetMessage() const{ return m_message; }
128 
132  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
133 
137  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
138 
142  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
143 
147  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
148 
152  inline PolicyEnforcedException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
153 
157  inline PolicyEnforcedException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
158 
162  inline PolicyEnforcedException& WithMessage(const char* value) { SetMessage(value); return *this;}
163 
164  private:
165 
166  Aws::String m_type;
167  bool m_typeHasBeenSet;
168 
169  Aws::String m_code;
170  bool m_codeHasBeenSet;
171 
172  Aws::String m_message;
173  bool m_messageHasBeenSet;
174  };
175 
176 } // namespace Model
177 } // namespace Glacier
178 } // namespace Aws
Aws::Glacier::Model::PolicyEnforcedException::PolicyEnforcedException
PolicyEnforcedException(Aws::Utils::Json::JsonView jsonValue)
Aws::Glacier::Model::PolicyEnforcedException::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: PolicyEnforcedException.h:91
Aws::Glacier::Model::PolicyEnforcedException::WithType
PolicyEnforcedException & WithType(Aws::String &&value)
Definition: PolicyEnforcedException.h:75
Aws::Glacier::Model::PolicyEnforcedException::SetMessage
void SetMessage(const char *value)
Definition: PolicyEnforcedException.h:147
Aws::Glacier::Model::PolicyEnforcedException::GetType
const Aws::String & GetType() const
Definition: PolicyEnforcedException.h:45
Aws::Glacier::Model::PolicyEnforcedException::SetCode
void SetCode(const char *value)
Definition: PolicyEnforcedException.h:106
Aws::Glacier::Model::PolicyEnforcedException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Glacier::Model::PolicyEnforcedException::operator=
PolicyEnforcedException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Glacier::Model::PolicyEnforcedException::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: PolicyEnforcedException.h:50
AWS_GLACIER_API
#define AWS_GLACIER_API
Definition: Glacier_EXPORTS.h:28
Aws::Glacier::Model::PolicyEnforcedException::WithMessage
PolicyEnforcedException & WithMessage(const Aws::String &value)
Definition: PolicyEnforcedException.h:152
Aws::Glacier::Model::PolicyEnforcedException::WithType
PolicyEnforcedException & WithType(const Aws::String &value)
Definition: PolicyEnforcedException.h:70
Aws::Glacier::Model::PolicyEnforcedException::GetMessage
const Aws::String & GetMessage() const
Definition: PolicyEnforcedException.h:127
Aws::Glacier::Model::PolicyEnforcedException::WithType
PolicyEnforcedException & WithType(const char *value)
Definition: PolicyEnforcedException.h:80
Aws::Glacier::Model::PolicyEnforcedException::SetType
void SetType(const char *value)
Definition: PolicyEnforcedException.h:65
Aws::Glacier::Model::PolicyEnforcedException::WithCode
PolicyEnforcedException & WithCode(Aws::String &&value)
Definition: PolicyEnforcedException.h:116
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Glacier::Model::PolicyEnforcedException::SetMessage
void SetMessage(Aws::String &&value)
Definition: PolicyEnforcedException.h:142
Aws::Glacier::Model::PolicyEnforcedException::WithCode
PolicyEnforcedException & WithCode(const char *value)
Definition: PolicyEnforcedException.h:121
Aws::Glacier::Model::PolicyEnforcedException::SetCode
void SetCode(Aws::String &&value)
Definition: PolicyEnforcedException.h:101
Aws::Glacier::Model::PolicyEnforcedException::SetType
void SetType(Aws::String &&value)
Definition: PolicyEnforcedException.h:60
Aws::Glacier::Model::PolicyEnforcedException
Definition: PolicyEnforcedException.h:34
Aws::Glacier::Model::PolicyEnforcedException::PolicyEnforcedException
PolicyEnforcedException()
Aws::Glacier::Model::PolicyEnforcedException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: PolicyEnforcedException.h:132
Aws
Definition: AccessManagementClient.h:15
Aws::Glacier::Model::PolicyEnforcedException::WithMessage
PolicyEnforcedException & WithMessage(const char *value)
Definition: PolicyEnforcedException.h:162
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Glacier::Model::PolicyEnforcedException::SetCode
void SetCode(const Aws::String &value)
Definition: PolicyEnforcedException.h:96
Aws::Glacier::Model::PolicyEnforcedException::GetCode
const Aws::String & GetCode() const
Definition: PolicyEnforcedException.h:86
Aws::Glacier::Model::PolicyEnforcedException::SetMessage
void SetMessage(const Aws::String &value)
Definition: PolicyEnforcedException.h:137
Aws::Glacier::Model::PolicyEnforcedException::WithMessage
PolicyEnforcedException & WithMessage(Aws::String &&value)
Definition: PolicyEnforcedException.h:157
Aws::Glacier::Model::PolicyEnforcedException::SetType
void SetType(const Aws::String &value)
Definition: PolicyEnforcedException.h:55
Aws::Glacier::Model::PolicyEnforcedException::WithCode
PolicyEnforcedException & WithCode(const Aws::String &value)
Definition: PolicyEnforcedException.h:111
Glacier_EXPORTS.h