AWS SDK for C++  1.9.104
AWS SDK for C++
InboundCrossClusterSearchConnectionStatus.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 ElasticsearchService
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
51  inline const InboundCrossClusterSearchConnectionStatusCode& GetStatusCode() const{ return m_statusCode; }
52 
62  inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
63 
73  inline void SetStatusCode(const InboundCrossClusterSearchConnectionStatusCode& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
74 
84  inline void SetStatusCode(InboundCrossClusterSearchConnectionStatusCode&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
85 
96 
106  inline InboundCrossClusterSearchConnectionStatus& WithStatusCode(InboundCrossClusterSearchConnectionStatusCode&& value) { SetStatusCode(std::move(value)); return *this;}
107 
108 
112  inline const Aws::String& GetMessage() const{ return m_message; }
113 
117  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
118 
122  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
123 
127  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
128 
132  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
133 
137  inline InboundCrossClusterSearchConnectionStatus& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
138 
142  inline InboundCrossClusterSearchConnectionStatus& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
143 
147  inline InboundCrossClusterSearchConnectionStatus& WithMessage(const char* value) { SetMessage(value); return *this;}
148 
149  private:
150 
152  bool m_statusCodeHasBeenSet;
153 
154  Aws::String m_message;
155  bool m_messageHasBeenSet;
156  };
157 
158 } // namespace Model
159 } // namespace ElasticsearchService
160 } // namespace Aws
Aws::ElasticsearchService::Model::InboundCrossClusterSearchConnectionStatus::InboundCrossClusterSearchConnectionStatus
InboundCrossClusterSearchConnectionStatus(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::InboundCrossClusterSearchConnectionStatus::GetStatusCode
const InboundCrossClusterSearchConnectionStatusCode & GetStatusCode() const
Definition: InboundCrossClusterSearchConnectionStatus.h:51
Aws::ElasticsearchService::Model::InboundCrossClusterSearchConnectionStatus::SetStatusCode
void SetStatusCode(InboundCrossClusterSearchConnectionStatusCode &&value)
Definition: InboundCrossClusterSearchConnectionStatus.h:84
Aws::ElasticsearchService::Model::InboundCrossClusterSearchConnectionStatus::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: InboundCrossClusterSearchConnectionStatus.h:117
Aws::ElasticsearchService::Model::InboundCrossClusterSearchConnectionStatus::SetMessage
void SetMessage(const char *value)
Definition: InboundCrossClusterSearchConnectionStatus.h:132
Aws::ElasticsearchService::Model::InboundCrossClusterSearchConnectionStatus::operator=
InboundCrossClusterSearchConnectionStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::InboundCrossClusterSearchConnectionStatus::StatusCodeHasBeenSet
bool StatusCodeHasBeenSet() const
Definition: InboundCrossClusterSearchConnectionStatus.h:62
Aws::ElasticsearchService::Model::InboundCrossClusterSearchConnectionStatus::WithStatusCode
InboundCrossClusterSearchConnectionStatus & WithStatusCode(const InboundCrossClusterSearchConnectionStatusCode &value)
Definition: InboundCrossClusterSearchConnectionStatus.h:95
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
Aws::ElasticsearchService::Model::InboundCrossClusterSearchConnectionStatus::WithMessage
InboundCrossClusterSearchConnectionStatus & WithMessage(Aws::String &&value)
Definition: InboundCrossClusterSearchConnectionStatus.h:142
Aws::ElasticsearchService::Model::InboundCrossClusterSearchConnectionStatus::WithStatusCode
InboundCrossClusterSearchConnectionStatus & WithStatusCode(InboundCrossClusterSearchConnectionStatusCode &&value)
Definition: InboundCrossClusterSearchConnectionStatus.h:106
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::InboundCrossClusterSearchConnectionStatus::SetMessage
void SetMessage(Aws::String &&value)
Definition: InboundCrossClusterSearchConnectionStatus.h:127
Aws::ElasticsearchService::Model::InboundCrossClusterSearchConnectionStatus::InboundCrossClusterSearchConnectionStatus
InboundCrossClusterSearchConnectionStatus()
Aws::ElasticsearchService::Model::InboundCrossClusterSearchConnectionStatus::WithMessage
InboundCrossClusterSearchConnectionStatus & WithMessage(const Aws::String &value)
Definition: InboundCrossClusterSearchConnectionStatus.h:137
Aws::ElasticsearchService::Model::InboundCrossClusterSearchConnectionStatus::WithMessage
InboundCrossClusterSearchConnectionStatus & WithMessage(const char *value)
Definition: InboundCrossClusterSearchConnectionStatus.h:147
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ElasticsearchService::Model::InboundCrossClusterSearchConnectionStatus::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticsearchService::Model::InboundCrossClusterSearchConnectionStatusCode
InboundCrossClusterSearchConnectionStatusCode
Definition: InboundCrossClusterSearchConnectionStatusCode.h:17
Aws::ElasticsearchService::Model::InboundCrossClusterSearchConnectionStatus
Definition: InboundCrossClusterSearchConnectionStatus.h:34
Aws::ElasticsearchService::Model::InboundCrossClusterSearchConnectionStatus::SetStatusCode
void SetStatusCode(const InboundCrossClusterSearchConnectionStatusCode &value)
Definition: InboundCrossClusterSearchConnectionStatus.h:73
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticsearchService::Model::InboundCrossClusterSearchConnectionStatus::SetMessage
void SetMessage(const Aws::String &value)
Definition: InboundCrossClusterSearchConnectionStatus.h:122
Aws::ElasticsearchService::Model::InboundCrossClusterSearchConnectionStatus::GetMessage
const Aws::String & GetMessage() const
Definition: InboundCrossClusterSearchConnectionStatus.h:112
InboundCrossClusterSearchConnectionStatusCode.h