AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
InboundConnectionStatus.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearch/OpenSearchService_EXPORTS.h>
9#include <aws/opensearch/model/InboundConnectionStatusCode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace OpenSearchService {
21namespace Model {
22
30 public:
31 AWS_OPENSEARCHSERVICE_API InboundConnectionStatus() = default;
32 AWS_OPENSEARCHSERVICE_API InboundConnectionStatus(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVICE_API InboundConnectionStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
50 inline InboundConnectionStatusCode GetStatusCode() const { return m_statusCode; }
51 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
53 m_statusCodeHasBeenSet = true;
54 m_statusCode = value;
55 }
57 SetStatusCode(value);
58 return *this;
59 }
61
63
66 inline const Aws::String& GetMessage() const { return m_message; }
67 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
68 template <typename MessageT = Aws::String>
69 void SetMessage(MessageT&& value) {
70 m_messageHasBeenSet = true;
71 m_message = std::forward<MessageT>(value);
72 }
73 template <typename MessageT = Aws::String>
75 SetMessage(std::forward<MessageT>(value));
76 return *this;
77 }
79 private:
81
82 Aws::String m_message;
83 bool m_statusCodeHasBeenSet = false;
84 bool m_messageHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace OpenSearchService
89} // namespace Aws
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
InboundConnectionStatus & WithStatusCode(InboundConnectionStatusCode value)
InboundConnectionStatus & WithMessage(MessageT &&value)
AWS_OPENSEARCHSERVICE_API InboundConnectionStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API InboundConnectionStatus(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API InboundConnectionStatus()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue