AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
AuthorizeSnapshotAccessRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/redshift/RedshiftRequest.h>
9#include <aws/redshift/Redshift_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Redshift {
15namespace Model {
16
23 public:
24 AWS_REDSHIFT_API AuthorizeSnapshotAccessRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "AuthorizeSnapshotAccess"; }
31
32 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
36
37 public:
39
42 inline const Aws::String& GetSnapshotIdentifier() const { return m_snapshotIdentifier; }
43 inline bool SnapshotIdentifierHasBeenSet() const { return m_snapshotIdentifierHasBeenSet; }
44 template <typename SnapshotIdentifierT = Aws::String>
45 void SetSnapshotIdentifier(SnapshotIdentifierT&& value) {
46 m_snapshotIdentifierHasBeenSet = true;
47 m_snapshotIdentifier = std::forward<SnapshotIdentifierT>(value);
48 }
49 template <typename SnapshotIdentifierT = Aws::String>
51 SetSnapshotIdentifier(std::forward<SnapshotIdentifierT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetSnapshotArn() const { return m_snapshotArn; }
61 inline bool SnapshotArnHasBeenSet() const { return m_snapshotArnHasBeenSet; }
62 template <typename SnapshotArnT = Aws::String>
63 void SetSnapshotArn(SnapshotArnT&& value) {
64 m_snapshotArnHasBeenSet = true;
65 m_snapshotArn = std::forward<SnapshotArnT>(value);
66 }
67 template <typename SnapshotArnT = Aws::String>
69 SetSnapshotArn(std::forward<SnapshotArnT>(value));
70 return *this;
71 }
73
75
84 inline const Aws::String& GetSnapshotClusterIdentifier() const { return m_snapshotClusterIdentifier; }
85 inline bool SnapshotClusterIdentifierHasBeenSet() const { return m_snapshotClusterIdentifierHasBeenSet; }
86 template <typename SnapshotClusterIdentifierT = Aws::String>
87 void SetSnapshotClusterIdentifier(SnapshotClusterIdentifierT&& value) {
88 m_snapshotClusterIdentifierHasBeenSet = true;
89 m_snapshotClusterIdentifier = std::forward<SnapshotClusterIdentifierT>(value);
90 }
91 template <typename SnapshotClusterIdentifierT = Aws::String>
93 SetSnapshotClusterIdentifier(std::forward<SnapshotClusterIdentifierT>(value));
94 return *this;
95 }
97
99
104 inline const Aws::String& GetAccountWithRestoreAccess() const { return m_accountWithRestoreAccess; }
105 inline bool AccountWithRestoreAccessHasBeenSet() const { return m_accountWithRestoreAccessHasBeenSet; }
106 template <typename AccountWithRestoreAccessT = Aws::String>
107 void SetAccountWithRestoreAccess(AccountWithRestoreAccessT&& value) {
108 m_accountWithRestoreAccessHasBeenSet = true;
109 m_accountWithRestoreAccess = std::forward<AccountWithRestoreAccessT>(value);
110 }
111 template <typename AccountWithRestoreAccessT = Aws::String>
113 SetAccountWithRestoreAccess(std::forward<AccountWithRestoreAccessT>(value));
114 return *this;
115 }
117 private:
118 Aws::String m_snapshotIdentifier;
119
120 Aws::String m_snapshotArn;
121
122 Aws::String m_snapshotClusterIdentifier;
123
124 Aws::String m_accountWithRestoreAccess;
125 bool m_snapshotIdentifierHasBeenSet = false;
126 bool m_snapshotArnHasBeenSet = false;
127 bool m_snapshotClusterIdentifierHasBeenSet = false;
128 bool m_accountWithRestoreAccessHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace Redshift
133} // namespace Aws
AuthorizeSnapshotAccessRequest & WithSnapshotClusterIdentifier(SnapshotClusterIdentifierT &&value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
AuthorizeSnapshotAccessRequest & WithSnapshotIdentifier(SnapshotIdentifierT &&value)
void SetSnapshotClusterIdentifier(SnapshotClusterIdentifierT &&value)
void SetAccountWithRestoreAccess(AccountWithRestoreAccessT &&value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AuthorizeSnapshotAccessRequest & WithAccountWithRestoreAccess(AccountWithRestoreAccessT &&value)
AWS_REDSHIFT_API AuthorizeSnapshotAccessRequest()=default
AuthorizeSnapshotAccessRequest & WithSnapshotArn(SnapshotArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String