AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
RevokeVpcEndpointAccessRequest.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/AWSServicePrincipal.h>
11#include <aws/opensearch/model/ServiceOptions.h>
12
13#include <utility>
14
15namespace Aws {
16namespace OpenSearchService {
17namespace Model {
18
22 public:
23 AWS_OPENSEARCHSERVICE_API RevokeVpcEndpointAccessRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "RevokeVpcEndpointAccess"; }
30
31 AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetDomainName() const { return m_domainName; }
38 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
39 template <typename DomainNameT = Aws::String>
40 void SetDomainName(DomainNameT&& value) {
41 m_domainNameHasBeenSet = true;
42 m_domainName = std::forward<DomainNameT>(value);
43 }
44 template <typename DomainNameT = Aws::String>
46 SetDomainName(std::forward<DomainNameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetAccount() const { return m_account; }
56 inline bool AccountHasBeenSet() const { return m_accountHasBeenSet; }
57 template <typename AccountT = Aws::String>
58 void SetAccount(AccountT&& value) {
59 m_accountHasBeenSet = true;
60 m_account = std::forward<AccountT>(value);
61 }
62 template <typename AccountT = Aws::String>
64 SetAccount(std::forward<AccountT>(value));
65 return *this;
66 }
68
70
73 inline AWSServicePrincipal GetService() const { return m_service; }
74 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
75 inline void SetService(AWSServicePrincipal value) {
76 m_serviceHasBeenSet = true;
77 m_service = value;
78 }
80 SetService(value);
81 return *this;
82 }
84
86
90 inline const ServiceOptions& GetServiceOptions() const { return m_serviceOptions; }
91 inline bool ServiceOptionsHasBeenSet() const { return m_serviceOptionsHasBeenSet; }
92 template <typename ServiceOptionsT = ServiceOptions>
93 void SetServiceOptions(ServiceOptionsT&& value) {
94 m_serviceOptionsHasBeenSet = true;
95 m_serviceOptions = std::forward<ServiceOptionsT>(value);
96 }
97 template <typename ServiceOptionsT = ServiceOptions>
99 SetServiceOptions(std::forward<ServiceOptionsT>(value));
100 return *this;
101 }
103 private:
104 Aws::String m_domainName;
105
106 Aws::String m_account;
107
109
110 ServiceOptions m_serviceOptions;
111 bool m_domainNameHasBeenSet = false;
112 bool m_accountHasBeenSet = false;
113 bool m_serviceHasBeenSet = false;
114 bool m_serviceOptionsHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace OpenSearchService
119} // namespace Aws
RevokeVpcEndpointAccessRequest & WithDomainName(DomainNameT &&value)
RevokeVpcEndpointAccessRequest & WithService(AWSServicePrincipal value)
AWS_OPENSEARCHSERVICE_API RevokeVpcEndpointAccessRequest()=default
AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override
RevokeVpcEndpointAccessRequest & WithServiceOptions(ServiceOptionsT &&value)
RevokeVpcEndpointAccessRequest & WithAccount(AccountT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String