AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
47 inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
48 inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
50 inline RevokeEndpointAccessRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
51 inline RevokeEndpointAccessRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
53
55
58 inline const Aws::String& GetAccount() const{ return m_account; }
59 inline bool AccountHasBeenSet() const { return m_accountHasBeenSet; }
60 inline void SetAccount(const Aws::String& value) { m_accountHasBeenSet = true; m_account = value; }
61 inline void SetAccount(Aws::String&& value) { m_accountHasBeenSet = true; m_account = std::move(value); }
62 inline void SetAccount(const char* value) { m_accountHasBeenSet = true; m_account.assign(value); }
63 inline RevokeEndpointAccessRequest& WithAccount(const Aws::String& value) { SetAccount(value); return *this;}
64 inline RevokeEndpointAccessRequest& WithAccount(Aws::String&& value) { SetAccount(std::move(value)); return *this;}
65 inline RevokeEndpointAccessRequest& WithAccount(const char* value) { SetAccount(value); return *this;}
67
69
73 inline const Aws::Vector<Aws::String>& GetVpcIds() const{ return m_vpcIds; }
74 inline bool VpcIdsHasBeenSet() const { return m_vpcIdsHasBeenSet; }
75 inline void SetVpcIds(const Aws::Vector<Aws::String>& value) { m_vpcIdsHasBeenSet = true; m_vpcIds = value; }
76 inline void SetVpcIds(Aws::Vector<Aws::String>&& value) { m_vpcIdsHasBeenSet = true; m_vpcIds = std::move(value); }
77 inline RevokeEndpointAccessRequest& WithVpcIds(const Aws::Vector<Aws::String>& value) { SetVpcIds(value); return *this;}
78 inline RevokeEndpointAccessRequest& WithVpcIds(Aws::Vector<Aws::String>&& value) { SetVpcIds(std::move(value)); return *this;}
79 inline RevokeEndpointAccessRequest& AddVpcIds(const Aws::String& value) { m_vpcIdsHasBeenSet = true; m_vpcIds.push_back(value); return *this; }
80 inline RevokeEndpointAccessRequest& AddVpcIds(Aws::String&& value) { m_vpcIdsHasBeenSet = true; m_vpcIds.push_back(std::move(value)); return *this; }
81 inline RevokeEndpointAccessRequest& AddVpcIds(const char* value) { m_vpcIdsHasBeenSet = true; m_vpcIds.push_back(value); return *this; }
83
85
89 inline bool GetForce() const{ return m_force; }
90 inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
91 inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; }
92 inline RevokeEndpointAccessRequest& WithForce(bool value) { SetForce(value); return *this;}
94 private:
95
96 Aws::String m_clusterIdentifier;
97 bool m_clusterIdentifierHasBeenSet = false;
98
99 Aws::String m_account;
100 bool m_accountHasBeenSet = false;
101
103 bool m_vpcIdsHasBeenSet = false;
104
105 bool m_force;
106 bool m_forceHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace Redshift
111} // namespace Aws
RevokeEndpointAccessRequest & WithClusterIdentifier(const char *value)
void SetVpcIds(const Aws::Vector< Aws::String > &value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
RevokeEndpointAccessRequest & WithForce(bool value)
RevokeEndpointAccessRequest & WithAccount(const Aws::String &value)
RevokeEndpointAccessRequest & WithVpcIds(const Aws::Vector< Aws::String > &value)
RevokeEndpointAccessRequest & WithClusterIdentifier(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
RevokeEndpointAccessRequest & WithClusterIdentifier(const Aws::String &value)
RevokeEndpointAccessRequest & AddVpcIds(Aws::String &&value)
RevokeEndpointAccessRequest & WithVpcIds(Aws::Vector< Aws::String > &&value)
RevokeEndpointAccessRequest & WithAccount(const char *value)
RevokeEndpointAccessRequest & AddVpcIds(const Aws::String &value)
RevokeEndpointAccessRequest & AddVpcIds(const char *value)
const Aws::Vector< Aws::String > & GetVpcIds() const
RevokeEndpointAccessRequest & WithAccount(Aws::String &&value)
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