AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
BatchGetVpcEndpointResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
10#include <aws/opensearchserverless/model/VpcEndpointDetail.h>
11#include <aws/opensearchserverless/model/VpcEndpointErrorDetail.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace OpenSearchServerless {
25namespace Model {
27 public:
28 AWS_OPENSEARCHSERVERLESS_API BatchGetVpcEndpointResult() = default;
31
33
36 inline const Aws::Vector<VpcEndpointDetail>& GetVpcEndpointDetails() const { return m_vpcEndpointDetails; }
37 template <typename VpcEndpointDetailsT = Aws::Vector<VpcEndpointDetail>>
38 void SetVpcEndpointDetails(VpcEndpointDetailsT&& value) {
39 m_vpcEndpointDetailsHasBeenSet = true;
40 m_vpcEndpointDetails = std::forward<VpcEndpointDetailsT>(value);
41 }
42 template <typename VpcEndpointDetailsT = Aws::Vector<VpcEndpointDetail>>
43 BatchGetVpcEndpointResult& WithVpcEndpointDetails(VpcEndpointDetailsT&& value) {
44 SetVpcEndpointDetails(std::forward<VpcEndpointDetailsT>(value));
45 return *this;
46 }
47 template <typename VpcEndpointDetailsT = VpcEndpointDetail>
48 BatchGetVpcEndpointResult& AddVpcEndpointDetails(VpcEndpointDetailsT&& value) {
49 m_vpcEndpointDetailsHasBeenSet = true;
50 m_vpcEndpointDetails.emplace_back(std::forward<VpcEndpointDetailsT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<VpcEndpointErrorDetail>& GetVpcEndpointErrorDetails() const { return m_vpcEndpointErrorDetails; }
60 template <typename VpcEndpointErrorDetailsT = Aws::Vector<VpcEndpointErrorDetail>>
61 void SetVpcEndpointErrorDetails(VpcEndpointErrorDetailsT&& value) {
62 m_vpcEndpointErrorDetailsHasBeenSet = true;
63 m_vpcEndpointErrorDetails = std::forward<VpcEndpointErrorDetailsT>(value);
64 }
65 template <typename VpcEndpointErrorDetailsT = Aws::Vector<VpcEndpointErrorDetail>>
66 BatchGetVpcEndpointResult& WithVpcEndpointErrorDetails(VpcEndpointErrorDetailsT&& value) {
67 SetVpcEndpointErrorDetails(std::forward<VpcEndpointErrorDetailsT>(value));
68 return *this;
69 }
70 template <typename VpcEndpointErrorDetailsT = VpcEndpointErrorDetail>
71 BatchGetVpcEndpointResult& AddVpcEndpointErrorDetails(VpcEndpointErrorDetailsT&& value) {
72 m_vpcEndpointErrorDetailsHasBeenSet = true;
73 m_vpcEndpointErrorDetails.emplace_back(std::forward<VpcEndpointErrorDetailsT>(value));
74 return *this;
75 }
77
79
80 inline const Aws::String& GetRequestId() const { return m_requestId; }
81 template <typename RequestIdT = Aws::String>
82 void SetRequestId(RequestIdT&& value) {
83 m_requestIdHasBeenSet = true;
84 m_requestId = std::forward<RequestIdT>(value);
85 }
86 template <typename RequestIdT = Aws::String>
88 SetRequestId(std::forward<RequestIdT>(value));
89 return *this;
90 }
92 private:
93 Aws::Vector<VpcEndpointDetail> m_vpcEndpointDetails;
94
95 Aws::Vector<VpcEndpointErrorDetail> m_vpcEndpointErrorDetails;
96
97 Aws::String m_requestId;
98 bool m_vpcEndpointDetailsHasBeenSet = false;
99 bool m_vpcEndpointErrorDetailsHasBeenSet = false;
100 bool m_requestIdHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace OpenSearchServerless
105} // 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