AWS SDK for C++

AWS SDK for C++ Version 1.11.714

Loading...
Searching...
No Matches
RevokeEndpointAccessRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/redshift/RedshiftRequest.h>
10#include <aws/redshift/Redshift_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Redshift {
16namespace Model {
17
21 public:
22 AWS_REDSHIFT_API RevokeEndpointAccessRequest() = 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 "RevokeEndpointAccess"; }
29
30 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
31
32 protected:
33 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
34
35 public:
37
40 inline const Aws::String& GetClusterIdentifier() const { return m_clusterIdentifier; }
41 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
42 template <typename ClusterIdentifierT = Aws::String>
43 void SetClusterIdentifier(ClusterIdentifierT&& value) {
44 m_clusterIdentifierHasBeenSet = true;
45 m_clusterIdentifier = std::forward<ClusterIdentifierT>(value);
46 }
47 template <typename ClusterIdentifierT = Aws::String>
49 SetClusterIdentifier(std::forward<ClusterIdentifierT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetAccount() const { return m_account; }
59 inline bool AccountHasBeenSet() const { return m_accountHasBeenSet; }
60 template <typename AccountT = Aws::String>
61 void SetAccount(AccountT&& value) {
62 m_accountHasBeenSet = true;
63 m_account = std::forward<AccountT>(value);
64 }
65 template <typename AccountT = Aws::String>
67 SetAccount(std::forward<AccountT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::Vector<Aws::String>& GetVpcIds() const { return m_vpcIds; }
78 inline bool VpcIdsHasBeenSet() const { return m_vpcIdsHasBeenSet; }
79 template <typename VpcIdsT = Aws::Vector<Aws::String>>
80 void SetVpcIds(VpcIdsT&& value) {
81 m_vpcIdsHasBeenSet = true;
82 m_vpcIds = std::forward<VpcIdsT>(value);
83 }
84 template <typename VpcIdsT = Aws::Vector<Aws::String>>
86 SetVpcIds(std::forward<VpcIdsT>(value));
87 return *this;
88 }
89 template <typename VpcIdsT = Aws::String>
91 m_vpcIdsHasBeenSet = true;
92 m_vpcIds.emplace_back(std::forward<VpcIdsT>(value));
93 return *this;
94 }
96
98
102 inline bool GetForce() const { return m_force; }
103 inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
104 inline void SetForce(bool value) {
105 m_forceHasBeenSet = true;
106 m_force = value;
107 }
109 SetForce(value);
110 return *this;
111 }
113 private:
114 Aws::String m_clusterIdentifier;
115
116 Aws::String m_account;
117
119
120 bool m_force{false};
121 bool m_clusterIdentifierHasBeenSet = false;
122 bool m_accountHasBeenSet = false;
123 bool m_vpcIdsHasBeenSet = false;
124 bool m_forceHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace Redshift
129} // namespace Aws
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
RevokeEndpointAccessRequest & WithForce(bool value)
RevokeEndpointAccessRequest & WithAccount(AccountT &&value)
AWS_REDSHIFT_API RevokeEndpointAccessRequest()=default
RevokeEndpointAccessRequest & WithClusterIdentifier(ClusterIdentifierT &&value)
RevokeEndpointAccessRequest & AddVpcIds(VpcIdsT &&value)
RevokeEndpointAccessRequest & WithVpcIds(VpcIdsT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetVpcIds() const
AWS_REDSHIFT_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector