AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
BatchGetVpcEndpointResult.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/opensearchserverless/OpenSearchServerless_EXPORTS.h>
11#include <aws/opensearchserverless/model/VpcEndpointDetail.h>
12#include <aws/opensearchserverless/model/VpcEndpointErrorDetail.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 OpenSearchServerless {
26namespace Model {
28 public:
29 AWS_OPENSEARCHSERVERLESS_API BatchGetVpcEndpointResult() = default;
32
34
37 inline const Aws::Vector<VpcEndpointDetail>& GetVpcEndpointDetails() const { return m_vpcEndpointDetails; }
38 template <typename VpcEndpointDetailsT = Aws::Vector<VpcEndpointDetail>>
39 void SetVpcEndpointDetails(VpcEndpointDetailsT&& value) {
40 m_vpcEndpointDetailsHasBeenSet = true;
41 m_vpcEndpointDetails = std::forward<VpcEndpointDetailsT>(value);
42 }
43 template <typename VpcEndpointDetailsT = Aws::Vector<VpcEndpointDetail>>
44 BatchGetVpcEndpointResult& WithVpcEndpointDetails(VpcEndpointDetailsT&& value) {
45 SetVpcEndpointDetails(std::forward<VpcEndpointDetailsT>(value));
46 return *this;
47 }
48 template <typename VpcEndpointDetailsT = VpcEndpointDetail>
49 BatchGetVpcEndpointResult& AddVpcEndpointDetails(VpcEndpointDetailsT&& value) {
50 m_vpcEndpointDetailsHasBeenSet = true;
51 m_vpcEndpointDetails.emplace_back(std::forward<VpcEndpointDetailsT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<VpcEndpointErrorDetail>& GetVpcEndpointErrorDetails() const { return m_vpcEndpointErrorDetails; }
61 template <typename VpcEndpointErrorDetailsT = Aws::Vector<VpcEndpointErrorDetail>>
62 void SetVpcEndpointErrorDetails(VpcEndpointErrorDetailsT&& value) {
63 m_vpcEndpointErrorDetailsHasBeenSet = true;
64 m_vpcEndpointErrorDetails = std::forward<VpcEndpointErrorDetailsT>(value);
65 }
66 template <typename VpcEndpointErrorDetailsT = Aws::Vector<VpcEndpointErrorDetail>>
67 BatchGetVpcEndpointResult& WithVpcEndpointErrorDetails(VpcEndpointErrorDetailsT&& value) {
68 SetVpcEndpointErrorDetails(std::forward<VpcEndpointErrorDetailsT>(value));
69 return *this;
70 }
71 template <typename VpcEndpointErrorDetailsT = VpcEndpointErrorDetail>
72 BatchGetVpcEndpointResult& AddVpcEndpointErrorDetails(VpcEndpointErrorDetailsT&& value) {
73 m_vpcEndpointErrorDetailsHasBeenSet = true;
74 m_vpcEndpointErrorDetails.emplace_back(std::forward<VpcEndpointErrorDetailsT>(value));
75 return *this;
76 }
78
80
81 inline const Aws::String& GetRequestId() const { return m_requestId; }
82 template <typename RequestIdT = Aws::String>
83 void SetRequestId(RequestIdT&& value) {
84 m_requestIdHasBeenSet = true;
85 m_requestId = std::forward<RequestIdT>(value);
86 }
87 template <typename RequestIdT = Aws::String>
89 SetRequestId(std::forward<RequestIdT>(value));
90 return *this;
91 }
93 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
94
95 private:
96 Aws::Vector<VpcEndpointDetail> m_vpcEndpointDetails;
97
98 Aws::Vector<VpcEndpointErrorDetail> m_vpcEndpointErrorDetails;
99
100 Aws::String m_requestId;
101 Aws::Http::HttpResponseCode m_HttpResponseCode;
102 bool m_vpcEndpointDetailsHasBeenSet = false;
103 bool m_vpcEndpointErrorDetailsHasBeenSet = false;
104 bool m_requestIdHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace OpenSearchServerless
109} // namespace Aws
const Aws::Vector< VpcEndpointDetail > & GetVpcEndpointDetails() const
BatchGetVpcEndpointResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< VpcEndpointErrorDetail > & GetVpcEndpointErrorDetails() const
BatchGetVpcEndpointResult & WithVpcEndpointDetails(VpcEndpointDetailsT &&value)
AWS_OPENSEARCHSERVERLESS_API BatchGetVpcEndpointResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_OPENSEARCHSERVERLESS_API BatchGetVpcEndpointResult()=default
BatchGetVpcEndpointResult & AddVpcEndpointDetails(VpcEndpointDetailsT &&value)
AWS_OPENSEARCHSERVERLESS_API BatchGetVpcEndpointResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetVpcEndpointResult & AddVpcEndpointErrorDetails(VpcEndpointErrorDetailsT &&value)
BatchGetVpcEndpointResult & WithVpcEndpointErrorDetails(VpcEndpointErrorDetailsT &&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