AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
OutboundConnectionStatus.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/OutboundConnectionStatusCode.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 OutboundConnectionStatus() = default;
32 AWS_OPENSEARCHSERVICE_API OutboundConnectionStatus(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVICE_API OutboundConnectionStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
53 inline OutboundConnectionStatusCode GetStatusCode() const { return m_statusCode; }
54 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
56 m_statusCodeHasBeenSet = true;
57 m_statusCode = value;
58 }
60 SetStatusCode(value);
61 return *this;
62 }
64
66
69 inline const Aws::String& GetMessage() const { return m_message; }
70 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
71 template <typename MessageT = Aws::String>
72 void SetMessage(MessageT&& value) {
73 m_messageHasBeenSet = true;
74 m_message = std::forward<MessageT>(value);
75 }
76 template <typename MessageT = Aws::String>
78 SetMessage(std::forward<MessageT>(value));
79 return *this;
80 }
82 private:
84
85 Aws::String m_message;
86 bool m_statusCodeHasBeenSet = false;
87 bool m_messageHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace OpenSearchService
92} // namespace Aws
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVICE_API OutboundConnectionStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
OutboundConnectionStatus & WithStatusCode(OutboundConnectionStatusCode value)
OutboundConnectionStatus & WithMessage(MessageT &&value)
AWS_OPENSEARCHSERVICE_API OutboundConnectionStatus()=default
AWS_OPENSEARCHSERVICE_API OutboundConnectionStatus(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue