AWS SDK for C++  1.9.104
AWS SDK for C++
UnauthorizedException.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 Kafka
22 {
23 namespace Model
24 {
25 
35  {
36  public:
41 
42 
48  inline const Aws::String& GetInvalidParameter() const{ return m_invalidParameter; }
49 
55  inline bool InvalidParameterHasBeenSet() const { return m_invalidParameterHasBeenSet; }
56 
62  inline void SetInvalidParameter(const Aws::String& value) { m_invalidParameterHasBeenSet = true; m_invalidParameter = value; }
63 
69  inline void SetInvalidParameter(Aws::String&& value) { m_invalidParameterHasBeenSet = true; m_invalidParameter = std::move(value); }
70 
76  inline void SetInvalidParameter(const char* value) { m_invalidParameterHasBeenSet = true; m_invalidParameter.assign(value); }
77 
83  inline UnauthorizedException& WithInvalidParameter(const Aws::String& value) { SetInvalidParameter(value); return *this;}
84 
90  inline UnauthorizedException& WithInvalidParameter(Aws::String&& value) { SetInvalidParameter(std::move(value)); return *this;}
91 
97  inline UnauthorizedException& WithInvalidParameter(const char* value) { SetInvalidParameter(value); return *this;}
98 
99 
105  inline const Aws::String& GetMessage() const{ return m_message; }
106 
112  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
113 
119  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
120 
126  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
127 
133  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
134 
140  inline UnauthorizedException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
141 
147  inline UnauthorizedException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
148 
154  inline UnauthorizedException& WithMessage(const char* value) { SetMessage(value); return *this;}
155 
156  private:
157 
158  Aws::String m_invalidParameter;
159  bool m_invalidParameterHasBeenSet;
160 
161  Aws::String m_message;
162  bool m_messageHasBeenSet;
163  };
164 
165 } // namespace Model
166 } // namespace Kafka
167 } // namespace Aws
Aws::Kafka::Model::UnauthorizedException::WithInvalidParameter
UnauthorizedException & WithInvalidParameter(const Aws::String &value)
Definition: UnauthorizedException.h:83
Aws::Kafka::Model::UnauthorizedException::SetMessage
void SetMessage(Aws::String &&value)
Definition: UnauthorizedException.h:126
Aws::Kafka::Model::UnauthorizedException::SetInvalidParameter
void SetInvalidParameter(const Aws::String &value)
Definition: UnauthorizedException.h:62
Aws::Kafka::Model::UnauthorizedException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: UnauthorizedException.h:112
Aws::Kafka::Model::UnauthorizedException::WithMessage
UnauthorizedException & WithMessage(Aws::String &&value)
Definition: UnauthorizedException.h:147
Aws::Kafka::Model::UnauthorizedException::WithInvalidParameter
UnauthorizedException & WithInvalidParameter(Aws::String &&value)
Definition: UnauthorizedException.h:90
Aws::Kafka::Model::UnauthorizedException::operator=
UnauthorizedException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Kafka::Model::UnauthorizedException
Definition: UnauthorizedException.h:35
Aws::Kafka::Model::UnauthorizedException::WithInvalidParameter
UnauthorizedException & WithInvalidParameter(const char *value)
Definition: UnauthorizedException.h:97
Aws::Kafka::Model::UnauthorizedException::SetMessage
void SetMessage(const Aws::String &value)
Definition: UnauthorizedException.h:119
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
AWS_KAFKA_API
#define AWS_KAFKA_API
Definition: Kafka_EXPORTS.h:28
Aws::Kafka::Model::UnauthorizedException::WithMessage
UnauthorizedException & WithMessage(const char *value)
Definition: UnauthorizedException.h:154
Aws::Kafka::Model::UnauthorizedException::SetInvalidParameter
void SetInvalidParameter(Aws::String &&value)
Definition: UnauthorizedException.h:69
Aws
Definition: AccessManagementClient.h:15
Aws::Kafka::Model::UnauthorizedException::WithMessage
UnauthorizedException & WithMessage(const Aws::String &value)
Definition: UnauthorizedException.h:140
Aws::Kafka::Model::UnauthorizedException::SetInvalidParameter
void SetInvalidParameter(const char *value)
Definition: UnauthorizedException.h:76
Aws::Kafka::Model::UnauthorizedException::SetMessage
void SetMessage(const char *value)
Definition: UnauthorizedException.h:133
Aws::Kafka::Model::UnauthorizedException::GetInvalidParameter
const Aws::String & GetInvalidParameter() const
Definition: UnauthorizedException.h:48
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Kafka_EXPORTS.h
Aws::Kafka::Model::UnauthorizedException::InvalidParameterHasBeenSet
bool InvalidParameterHasBeenSet() const
Definition: UnauthorizedException.h:55
Aws::Kafka::Model::UnauthorizedException::GetMessage
const Aws::String & GetMessage() const
Definition: UnauthorizedException.h:105
Aws::Kafka::Model::UnauthorizedException::UnauthorizedException
UnauthorizedException(Aws::Utils::Json::JsonView jsonValue)
Aws::Kafka::Model::UnauthorizedException::UnauthorizedException
UnauthorizedException()
Aws::Kafka::Model::UnauthorizedException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const