AWS SDK for C++

AWS SDK for C++ Version 1.11.938

Loading...
Searching...
No Matches
DescribeDomainReplicationResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/opensearch/OpenSearchService_EXPORTS.h>
11#include <aws/opensearch/model/ReplicationPeer.h>
12#include <aws/opensearch/model/ReplicationRole.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace OpenSearchService {
26namespace Model {
28 public:
29 AWS_OPENSEARCHSERVICE_API DescribeDomainReplicationResult() = default;
31 AWS_OPENSEARCHSERVICE_API DescribeDomainReplicationResult& operator=(
33
35
38 inline const Aws::String& GetDomainArn() const { return m_domainArn; }
39 template <typename DomainArnT = Aws::String>
40 void SetDomainArn(DomainArnT&& value) {
41 m_domainArnHasBeenSet = true;
42 m_domainArn = std::forward<DomainArnT>(value);
43 }
44 template <typename DomainArnT = Aws::String>
46 SetDomainArn(std::forward<DomainArnT>(value));
47 return *this;
48 }
50
52
56 inline ReplicationRole GetRole() const { return m_role; }
57 inline void SetRole(ReplicationRole value) {
58 m_roleHasBeenSet = true;
59 m_role = value;
60 }
62 SetRole(value);
63 return *this;
64 }
66
68
72 inline const Aws::Vector<ReplicationPeer>& GetPeers() const { return m_peers; }
73 template <typename PeersT = Aws::Vector<ReplicationPeer>>
74 void SetPeers(PeersT&& value) {
75 m_peersHasBeenSet = true;
76 m_peers = std::forward<PeersT>(value);
77 }
78 template <typename PeersT = Aws::Vector<ReplicationPeer>>
80 SetPeers(std::forward<PeersT>(value));
81 return *this;
82 }
83 template <typename PeersT = ReplicationPeer>
85 m_peersHasBeenSet = true;
86 m_peers.emplace_back(std::forward<PeersT>(value));
87 return *this;
88 }
90
92
93 inline const Aws::String& GetRequestId() const { return m_requestId; }
94 template <typename RequestIdT = Aws::String>
95 void SetRequestId(RequestIdT&& value) {
96 m_requestIdHasBeenSet = true;
97 m_requestId = std::forward<RequestIdT>(value);
98 }
99 template <typename RequestIdT = Aws::String>
101 SetRequestId(std::forward<RequestIdT>(value));
102 return *this;
103 }
105 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
106
107 private:
108 Aws::String m_domainArn;
109
111
113
114 Aws::String m_requestId;
115 Aws::Http::HttpResponseCode m_HttpResponseCode;
116 bool m_domainArnHasBeenSet = false;
117 bool m_roleHasBeenSet = false;
118 bool m_peersHasBeenSet = false;
119 bool m_requestIdHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace OpenSearchService
124} // namespace Aws
AWS_OPENSEARCHSERVICE_API DescribeDomainReplicationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_OPENSEARCHSERVICE_API DescribeDomainReplicationResult()=default
DescribeDomainReplicationResult & WithRequestId(RequestIdT &&value)
DescribeDomainReplicationResult & WithDomainArn(DomainArnT &&value)
AWS_OPENSEARCHSERVICE_API DescribeDomainReplicationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeDomainReplicationResult & WithRole(ReplicationRole value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue