AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
12#include <utility>
13
14namespace Aws {
15namespace OpenSearchService {
16namespace Model {
17
21 public:
22 AWS_OPENSEARCHSERVICE_API RevokeVpcEndpointAccessRequest() = 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 "RevokeVpcEndpointAccess"; }
29
30 AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetDomainName() const { return m_domainName; }
37 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
38 template <typename DomainNameT = Aws::String>
39 void SetDomainName(DomainNameT&& value) {
40 m_domainNameHasBeenSet = true;
41 m_domainName = std::forward<DomainNameT>(value);
42 }
43 template <typename DomainNameT = Aws::String>
45 SetDomainName(std::forward<DomainNameT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetAccount() const { return m_account; }
55 inline bool AccountHasBeenSet() const { return m_accountHasBeenSet; }
56 template <typename AccountT = Aws::String>
57 void SetAccount(AccountT&& value) {
58 m_accountHasBeenSet = true;
59 m_account = std::forward<AccountT>(value);
60 }
61 template <typename AccountT = Aws::String>
63 SetAccount(std::forward<AccountT>(value));
64 return *this;
65 }
67
69
72 inline AWSServicePrincipal GetService() const { return m_service; }
73 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
74 inline void SetService(AWSServicePrincipal value) {
75 m_serviceHasBeenSet = true;
76 m_service = value;
77 }
79 SetService(value);
80 return *this;
81 }
83 private:
84 Aws::String m_domainName;
85
86 Aws::String m_account;
87
89 bool m_domainNameHasBeenSet = false;
90 bool m_accountHasBeenSet = false;
91 bool m_serviceHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace OpenSearchService
96} // namespace Aws
RevokeVpcEndpointAccessRequest & WithDomainName(DomainNameT &&value)
RevokeVpcEndpointAccessRequest & WithService(AWSServicePrincipal value)
AWS_OPENSEARCHSERVICE_API RevokeVpcEndpointAccessRequest()=default
AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override
RevokeVpcEndpointAccessRequest & WithAccount(AccountT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String