AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateVpcEndpointRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearch/OpenSearchServiceRequest.h>
9#include <aws/opensearch/OpenSearchService_EXPORTS.h>
10#include <aws/opensearch/model/VPCOptions.h>
11
12#include <utility>
13
14namespace Aws {
15namespace OpenSearchService {
16namespace Model {
17
21 public:
22 AWS_OPENSEARCHSERVICE_API CreateVpcEndpointRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateVpcEndpoint"; }
29
30 AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetDomainArn() const { return m_domainArn; }
37 inline bool DomainArnHasBeenSet() const { return m_domainArnHasBeenSet; }
38 template <typename DomainArnT = Aws::String>
39 void SetDomainArn(DomainArnT&& value) {
40 m_domainArnHasBeenSet = true;
41 m_domainArn = std::forward<DomainArnT>(value);
42 }
43 template <typename DomainArnT = Aws::String>
45 SetDomainArn(std::forward<DomainArnT>(value));
46 return *this;
47 }
49
51
54 inline const VPCOptions& GetVpcOptions() const { return m_vpcOptions; }
55 inline bool VpcOptionsHasBeenSet() const { return m_vpcOptionsHasBeenSet; }
56 template <typename VpcOptionsT = VPCOptions>
57 void SetVpcOptions(VpcOptionsT&& value) {
58 m_vpcOptionsHasBeenSet = true;
59 m_vpcOptions = std::forward<VpcOptionsT>(value);
60 }
61 template <typename VpcOptionsT = VPCOptions>
63 SetVpcOptions(std::forward<VpcOptionsT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetClientToken() const { return m_clientToken; }
73 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
74 template <typename ClientTokenT = Aws::String>
75 void SetClientToken(ClientTokenT&& value) {
76 m_clientTokenHasBeenSet = true;
77 m_clientToken = std::forward<ClientTokenT>(value);
78 }
79 template <typename ClientTokenT = Aws::String>
81 SetClientToken(std::forward<ClientTokenT>(value));
82 return *this;
83 }
85 private:
86 Aws::String m_domainArn;
87
88 VPCOptions m_vpcOptions;
89
90 Aws::String m_clientToken;
91 bool m_domainArnHasBeenSet = false;
92 bool m_vpcOptionsHasBeenSet = false;
93 bool m_clientTokenHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace OpenSearchService
98} // namespace Aws
CreateVpcEndpointRequest & WithVpcOptions(VpcOptionsT &&value)
CreateVpcEndpointRequest & WithDomainArn(DomainArnT &&value)
CreateVpcEndpointRequest & WithClientToken(ClientTokenT &&value)
AWS_OPENSEARCHSERVICE_API CreateVpcEndpointRequest()=default
AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String