AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StateInfo.h
1
6#pragma once
7#include <aws/kafka/Kafka_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Kafka
22{
23namespace Model
24{
25
27 {
28 public:
29 AWS_KAFKA_API StateInfo();
30 AWS_KAFKA_API StateInfo(Aws::Utils::Json::JsonView jsonValue);
32 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
33
34
36
37 inline const Aws::String& GetCode() const{ return m_code; }
38 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
39 inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
40 inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
41 inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
42 inline StateInfo& WithCode(const Aws::String& value) { SetCode(value); return *this;}
43 inline StateInfo& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
44 inline StateInfo& WithCode(const char* value) { SetCode(value); return *this;}
46
48
49 inline const Aws::String& GetMessage() const{ return m_message; }
50 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
51 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
52 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
53 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
54 inline StateInfo& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
55 inline StateInfo& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
56 inline StateInfo& WithMessage(const char* value) { SetMessage(value); return *this;}
58 private:
59
60 Aws::String m_code;
61 bool m_codeHasBeenSet = false;
62
63 Aws::String m_message;
64 bool m_messageHasBeenSet = false;
65 };
66
67} // namespace Model
68} // namespace Kafka
69} // namespace Aws
const Aws::String & GetCode() const
Definition StateInfo.h:37
void SetCode(const Aws::String &value)
Definition StateInfo.h:39
StateInfo & WithMessage(const Aws::String &value)
Definition StateInfo.h:54
void SetCode(const char *value)
Definition StateInfo.h:41
void SetMessage(const Aws::String &value)
Definition StateInfo.h:51
StateInfo & WithMessage(const char *value)
Definition StateInfo.h:56
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
StateInfo & WithCode(const char *value)
Definition StateInfo.h:44
StateInfo & WithCode(Aws::String &&value)
Definition StateInfo.h:43
bool MessageHasBeenSet() const
Definition StateInfo.h:50
AWS_KAFKA_API StateInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMessage(Aws::String &&value)
Definition StateInfo.h:52
const Aws::String & GetMessage() const
Definition StateInfo.h:49
AWS_KAFKA_API StateInfo(Aws::Utils::Json::JsonView jsonValue)
StateInfo & WithMessage(Aws::String &&value)
Definition StateInfo.h:55
void SetCode(Aws::String &&value)
Definition StateInfo.h:40
StateInfo & WithCode(const Aws::String &value)
Definition StateInfo.h:42
void SetMessage(const char *value)
Definition StateInfo.h:53
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue