AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AuthorizeEndpointAccessRequest.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 AuthorizeEndpointAccessRequest() = 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 "AuthorizeEndpointAccess"; }
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 AuthorizeEndpointAccessRequest& 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 AuthorizeEndpointAccessRequest& WithAccount(AccountT&& value) { SetAccount(std::forward<AccountT>(value)); return *this;}
63
65
68 inline const Aws::Vector<Aws::String>& GetVpcIds() const { return m_vpcIds; }
69 inline bool VpcIdsHasBeenSet() const { return m_vpcIdsHasBeenSet; }
70 template<typename VpcIdsT = Aws::Vector<Aws::String>>
71 void SetVpcIds(VpcIdsT&& value) { m_vpcIdsHasBeenSet = true; m_vpcIds = std::forward<VpcIdsT>(value); }
72 template<typename VpcIdsT = Aws::Vector<Aws::String>>
73 AuthorizeEndpointAccessRequest& WithVpcIds(VpcIdsT&& value) { SetVpcIds(std::forward<VpcIdsT>(value)); return *this;}
74 template<typename VpcIdsT = Aws::String>
75 AuthorizeEndpointAccessRequest& AddVpcIds(VpcIdsT&& value) { m_vpcIdsHasBeenSet = true; m_vpcIds.emplace_back(std::forward<VpcIdsT>(value)); return *this; }
77 private:
78
79 Aws::String m_clusterIdentifier;
80 bool m_clusterIdentifierHasBeenSet = false;
81
82 Aws::String m_account;
83 bool m_accountHasBeenSet = false;
84
86 bool m_vpcIdsHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace Redshift
91} // namespace Aws
AWS_REDSHIFT_API Aws::String SerializePayload() const override
AuthorizeEndpointAccessRequest & WithClusterIdentifier(ClusterIdentifierT &&value)
AuthorizeEndpointAccessRequest & WithVpcIds(VpcIdsT &&value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AuthorizeEndpointAccessRequest & AddVpcIds(VpcIdsT &&value)
AuthorizeEndpointAccessRequest & WithAccount(AccountT &&value)
AWS_REDSHIFT_API AuthorizeEndpointAccessRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector