AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RevokeEndpointAccessRequest.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/redshift/RedshiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Redshift
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_REDSHIFT_API RevokeEndpointAccessRequest() = 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 "RevokeEndpointAccess"; }
32
33 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
44 inline const Aws::String& GetClusterIdentifier() const { return m_clusterIdentifier; }
45 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
46 template<typename ClusterIdentifierT = Aws::String>
47 void SetClusterIdentifier(ClusterIdentifierT&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::forward<ClusterIdentifierT>(value); }
48 template<typename ClusterIdentifierT = Aws::String>
49 RevokeEndpointAccessRequest& WithClusterIdentifier(ClusterIdentifierT&& value) { SetClusterIdentifier(std::forward<ClusterIdentifierT>(value)); return *this;}
51
53
56 inline const Aws::String& GetAccount() const { return m_account; }
57 inline bool AccountHasBeenSet() const { return m_accountHasBeenSet; }
58 template<typename AccountT = Aws::String>
59 void SetAccount(AccountT&& value) { m_accountHasBeenSet = true; m_account = std::forward<AccountT>(value); }
60 template<typename AccountT = Aws::String>
61 RevokeEndpointAccessRequest& WithAccount(AccountT&& value) { SetAccount(std::forward<AccountT>(value)); return *this;}
63
65
69 inline const Aws::Vector<Aws::String>& GetVpcIds() const { return m_vpcIds; }
70 inline bool VpcIdsHasBeenSet() const { return m_vpcIdsHasBeenSet; }
71 template<typename VpcIdsT = Aws::Vector<Aws::String>>
72 void SetVpcIds(VpcIdsT&& value) { m_vpcIdsHasBeenSet = true; m_vpcIds = std::forward<VpcIdsT>(value); }
73 template<typename VpcIdsT = Aws::Vector<Aws::String>>
74 RevokeEndpointAccessRequest& WithVpcIds(VpcIdsT&& value) { SetVpcIds(std::forward<VpcIdsT>(value)); return *this;}
75 template<typename VpcIdsT = Aws::String>
76 RevokeEndpointAccessRequest& AddVpcIds(VpcIdsT&& value) { m_vpcIdsHasBeenSet = true; m_vpcIds.emplace_back(std::forward<VpcIdsT>(value)); return *this; }
78
80
84 inline bool GetForce() const { return m_force; }
85 inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
86 inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; }
87 inline RevokeEndpointAccessRequest& WithForce(bool value) { SetForce(value); return *this;}
89 private:
90
91 Aws::String m_clusterIdentifier;
92 bool m_clusterIdentifierHasBeenSet = false;
93
94 Aws::String m_account;
95 bool m_accountHasBeenSet = false;
96
98 bool m_vpcIdsHasBeenSet = false;
99
100 bool m_force{false};
101 bool m_forceHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace Redshift
106} // 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