AWS SDK for C++  1.9.108
AWS SDK for C++
InvalidGatewayRequestException.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace StorageGateway
23 {
24 namespace Model
25 {
26 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetMessage() const{ return m_message; }
47 
51  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
52 
56  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
57 
61  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
62 
66  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
67 
71  inline InvalidGatewayRequestException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
72 
76  inline InvalidGatewayRequestException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
77 
81  inline InvalidGatewayRequestException& WithMessage(const char* value) { SetMessage(value); return *this;}
82 
83 
88  inline const StorageGatewayError& GetError() const{ return m_error; }
89 
94  inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
95 
100  inline void SetError(const StorageGatewayError& value) { m_errorHasBeenSet = true; m_error = value; }
101 
106  inline void SetError(StorageGatewayError&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
107 
112  inline InvalidGatewayRequestException& WithError(const StorageGatewayError& value) { SetError(value); return *this;}
113 
118  inline InvalidGatewayRequestException& WithError(StorageGatewayError&& value) { SetError(std::move(value)); return *this;}
119 
120  private:
121 
122  Aws::String m_message;
123  bool m_messageHasBeenSet;
124 
125  StorageGatewayError m_error;
126  bool m_errorHasBeenSet;
127  };
128 
129 } // namespace Model
130 } // namespace StorageGateway
131 } // namespace Aws
Aws::StorageGateway::Model::StorageGatewayError
Definition: StorageGatewayError.h:36
Aws::StorageGateway::Model::InvalidGatewayRequestException::InvalidGatewayRequestException
InvalidGatewayRequestException(Aws::Utils::Json::JsonView jsonValue)
Aws::StorageGateway::Model::InvalidGatewayRequestException::SetMessage
void SetMessage(const Aws::String &value)
Definition: InvalidGatewayRequestException.h:56
Aws::StorageGateway::Model::InvalidGatewayRequestException::WithMessage
InvalidGatewayRequestException & WithMessage(Aws::String &&value)
Definition: InvalidGatewayRequestException.h:76
Aws::StorageGateway::Model::InvalidGatewayRequestException::operator=
InvalidGatewayRequestException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::StorageGateway::Model::InvalidGatewayRequestException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::StorageGateway::Model::InvalidGatewayRequestException::SetError
void SetError(const StorageGatewayError &value)
Definition: InvalidGatewayRequestException.h:100
Aws::StorageGateway::Model::InvalidGatewayRequestException::WithMessage
InvalidGatewayRequestException & WithMessage(const char *value)
Definition: InvalidGatewayRequestException.h:81
Aws::StorageGateway::Model::InvalidGatewayRequestException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: InvalidGatewayRequestException.h:51
Aws::StorageGateway::Model::InvalidGatewayRequestException::WithMessage
InvalidGatewayRequestException & WithMessage(const Aws::String &value)
Definition: InvalidGatewayRequestException.h:71
Aws::StorageGateway::Model::InvalidGatewayRequestException::GetMessage
const Aws::String & GetMessage() const
Definition: InvalidGatewayRequestException.h:46
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::InvalidGatewayRequestException::SetMessage
void SetMessage(const char *value)
Definition: InvalidGatewayRequestException.h:66
Aws::StorageGateway::Model::InvalidGatewayRequestException::GetError
const StorageGatewayError & GetError() const
Definition: InvalidGatewayRequestException.h:88
Aws
Definition: AccessManagementClient.h:15
StorageGateway_EXPORTS.h
Aws::StorageGateway::Model::InvalidGatewayRequestException::SetMessage
void SetMessage(Aws::String &&value)
Definition: InvalidGatewayRequestException.h:61
Aws::StorageGateway::Model::InvalidGatewayRequestException::WithError
InvalidGatewayRequestException & WithError(StorageGatewayError &&value)
Definition: InvalidGatewayRequestException.h:118
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::StorageGateway::Model::InvalidGatewayRequestException::SetError
void SetError(StorageGatewayError &&value)
Definition: InvalidGatewayRequestException.h:106
Aws::StorageGateway::Model::InvalidGatewayRequestException::InvalidGatewayRequestException
InvalidGatewayRequestException()
StorageGatewayError.h
Aws::StorageGateway::Model::InvalidGatewayRequestException::WithError
InvalidGatewayRequestException & WithError(const StorageGatewayError &value)
Definition: InvalidGatewayRequestException.h:112
Aws::StorageGateway::Model::InvalidGatewayRequestException::ErrorHasBeenSet
bool ErrorHasBeenSet() const
Definition: InvalidGatewayRequestException.h:94
Aws::StorageGateway::Model::InvalidGatewayRequestException
Definition: InvalidGatewayRequestException.h:35