AWS SDK for C++  1.9.104
AWS SDK for C++
StateInfo.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 
27  {
28  public:
33 
34 
35 
36  inline const Aws::String& GetCode() const{ return m_code; }
37 
38 
39  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
40 
41 
42  inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
43 
44 
45  inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
46 
47 
48  inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
49 
50 
51  inline StateInfo& WithCode(const Aws::String& value) { SetCode(value); return *this;}
52 
53 
54  inline StateInfo& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
55 
56 
57  inline StateInfo& WithCode(const char* value) { SetCode(value); return *this;}
58 
59 
60 
61  inline const Aws::String& GetMessage() const{ return m_message; }
62 
63 
64  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
65 
66 
67  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
68 
69 
70  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
71 
72 
73  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
74 
75 
76  inline StateInfo& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
77 
78 
79  inline StateInfo& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
80 
81 
82  inline StateInfo& WithMessage(const char* value) { SetMessage(value); return *this;}
83 
84  private:
85 
86  Aws::String m_code;
87  bool m_codeHasBeenSet;
88 
89  Aws::String m_message;
90  bool m_messageHasBeenSet;
91  };
92 
93 } // namespace Model
94 } // namespace Kafka
95 } // namespace Aws
Aws::Kafka::Model::StateInfo::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: StateInfo.h:39
Aws::Kafka::Model::StateInfo::SetMessage
void SetMessage(const char *value)
Definition: StateInfo.h:73
Aws::Kafka::Model::StateInfo::SetMessage
void SetMessage(const Aws::String &value)
Definition: StateInfo.h:67
Aws::Kafka::Model::StateInfo::WithMessage
StateInfo & WithMessage(Aws::String &&value)
Definition: StateInfo.h:79
Aws::Kafka::Model::StateInfo::SetCode
void SetCode(Aws::String &&value)
Definition: StateInfo.h:45
Aws::Kafka::Model::StateInfo::StateInfo
StateInfo()
Aws::Kafka::Model::StateInfo::operator=
StateInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Kafka::Model::StateInfo::WithMessage
StateInfo & WithMessage(const char *value)
Definition: StateInfo.h:82
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
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::StateInfo::WithCode
StateInfo & WithCode(const char *value)
Definition: StateInfo.h:57
Aws::Kafka::Model::StateInfo::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws
Definition: AccessManagementClient.h:15
Aws::Kafka::Model::StateInfo::WithCode
StateInfo & WithCode(const Aws::String &value)
Definition: StateInfo.h:51
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Kafka::Model::StateInfo::WithMessage
StateInfo & WithMessage(const Aws::String &value)
Definition: StateInfo.h:76
Kafka_EXPORTS.h
Aws::Kafka::Model::StateInfo::SetMessage
void SetMessage(Aws::String &&value)
Definition: StateInfo.h:70
Aws::Kafka::Model::StateInfo::SetCode
void SetCode(const Aws::String &value)
Definition: StateInfo.h:42
Aws::Kafka::Model::StateInfo::GetMessage
const Aws::String & GetMessage() const
Definition: StateInfo.h:61
Aws::Kafka::Model::StateInfo::StateInfo
StateInfo(Aws::Utils::Json::JsonView jsonValue)
Aws::Kafka::Model::StateInfo::WithCode
StateInfo & WithCode(Aws::String &&value)
Definition: StateInfo.h:54
Aws::Kafka::Model::StateInfo::SetCode
void SetCode(const char *value)
Definition: StateInfo.h:48
Aws::Kafka::Model::StateInfo::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: StateInfo.h:64
Aws::Kafka::Model::StateInfo
Definition: StateInfo.h:27
Aws::Kafka::Model::StateInfo::GetCode
const Aws::String & GetCode() const
Definition: StateInfo.h:36