AWS SDK for C++

AWS SDK for C++ Version 1.11.714

Loading...
Searching...
No Matches
AuthorizeEndpointAccessRequest.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 AuthorizeEndpointAccessRequest() = 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 "AuthorizeEndpointAccess"; }
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
76 inline const Aws::Vector<Aws::String>& GetVpcIds() const { return m_vpcIds; }
77 inline bool VpcIdsHasBeenSet() const { return m_vpcIdsHasBeenSet; }
78 template <typename VpcIdsT = Aws::Vector<Aws::String>>
79 void SetVpcIds(VpcIdsT&& value) {
80 m_vpcIdsHasBeenSet = true;
81 m_vpcIds = std::forward<VpcIdsT>(value);
82 }
83 template <typename VpcIdsT = Aws::Vector<Aws::String>>
85 SetVpcIds(std::forward<VpcIdsT>(value));
86 return *this;
87 }
88 template <typename VpcIdsT = Aws::String>
90 m_vpcIdsHasBeenSet = true;
91 m_vpcIds.emplace_back(std::forward<VpcIdsT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_clusterIdentifier;
97
98 Aws::String m_account;
99
101 bool m_clusterIdentifierHasBeenSet = false;
102 bool m_accountHasBeenSet = false;
103 bool m_vpcIdsHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace Redshift
108} // 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