AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RevokeVpcEndpointAccessRequest.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/AWSServicePrincipal.h>
11#include <utility>
12
13namespace Aws
14{
15namespace OpenSearchService
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_OPENSEARCHSERVICE_API RevokeVpcEndpointAccessRequest() = 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 "RevokeVpcEndpointAccess"; }
32
33 AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetDomainName() const { return m_domainName; }
41 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
42 template<typename DomainNameT = Aws::String>
43 void SetDomainName(DomainNameT&& value) { m_domainNameHasBeenSet = true; m_domainName = std::forward<DomainNameT>(value); }
44 template<typename DomainNameT = Aws::String>
45 RevokeVpcEndpointAccessRequest& WithDomainName(DomainNameT&& value) { SetDomainName(std::forward<DomainNameT>(value)); return *this;}
47
49
52 inline const Aws::String& GetAccount() const { return m_account; }
53 inline bool AccountHasBeenSet() const { return m_accountHasBeenSet; }
54 template<typename AccountT = Aws::String>
55 void SetAccount(AccountT&& value) { m_accountHasBeenSet = true; m_account = std::forward<AccountT>(value); }
56 template<typename AccountT = Aws::String>
57 RevokeVpcEndpointAccessRequest& WithAccount(AccountT&& value) { SetAccount(std::forward<AccountT>(value)); return *this;}
59
61
64 inline AWSServicePrincipal GetService() const { return m_service; }
65 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
66 inline void SetService(AWSServicePrincipal value) { m_serviceHasBeenSet = true; m_service = value; }
69 private:
70
71 Aws::String m_domainName;
72 bool m_domainNameHasBeenSet = false;
73
74 Aws::String m_account;
75 bool m_accountHasBeenSet = false;
76
78 bool m_serviceHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace OpenSearchService
83} // 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