AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateVpcEndpointRequest.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/opensearch/OpenSearchServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/opensearch/model/VPCOptions.h>
11#include <utility>
12
13namespace Aws
14{
15namespace OpenSearchService
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_OPENSEARCHSERVICE_API CreateVpcEndpointRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateVpcEndpoint"; }
32
33 AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetDomainArn() const { return m_domainArn; }
41 inline bool DomainArnHasBeenSet() const { return m_domainArnHasBeenSet; }
42 template<typename DomainArnT = Aws::String>
43 void SetDomainArn(DomainArnT&& value) { m_domainArnHasBeenSet = true; m_domainArn = std::forward<DomainArnT>(value); }
44 template<typename DomainArnT = Aws::String>
45 CreateVpcEndpointRequest& WithDomainArn(DomainArnT&& value) { SetDomainArn(std::forward<DomainArnT>(value)); return *this;}
47
49
52 inline const VPCOptions& GetVpcOptions() const { return m_vpcOptions; }
53 inline bool VpcOptionsHasBeenSet() const { return m_vpcOptionsHasBeenSet; }
54 template<typename VpcOptionsT = VPCOptions>
55 void SetVpcOptions(VpcOptionsT&& value) { m_vpcOptionsHasBeenSet = true; m_vpcOptions = std::forward<VpcOptionsT>(value); }
56 template<typename VpcOptionsT = VPCOptions>
57 CreateVpcEndpointRequest& WithVpcOptions(VpcOptionsT&& value) { SetVpcOptions(std::forward<VpcOptionsT>(value)); return *this;}
59
61
64 inline const Aws::String& GetClientToken() const { return m_clientToken; }
65 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
66 template<typename ClientTokenT = Aws::String>
67 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
68 template<typename ClientTokenT = Aws::String>
69 CreateVpcEndpointRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
71 private:
72
73 Aws::String m_domainArn;
74 bool m_domainArnHasBeenSet = false;
75
76 VPCOptions m_vpcOptions;
77 bool m_vpcOptionsHasBeenSet = false;
78
79 Aws::String m_clientToken;
80 bool m_clientTokenHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace OpenSearchService
85} // 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