AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
RevokeSnapshotAccessRequest.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 RevokeSnapshotAccessRequest() = 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 "RevokeSnapshotAccess"; }
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
61 inline const Aws::String& GetSnapshotArn() const { return m_snapshotArn; }
62 inline bool SnapshotArnHasBeenSet() const { return m_snapshotArnHasBeenSet; }
63 template <typename SnapshotArnT = Aws::String>
64 void SetSnapshotArn(SnapshotArnT&& value) {
65 m_snapshotArnHasBeenSet = true;
66 m_snapshotArn = std::forward<SnapshotArnT>(value);
67 }
68 template <typename SnapshotArnT = Aws::String>
70 SetSnapshotArn(std::forward<SnapshotArnT>(value));
71 return *this;
72 }
74
76
81 inline const Aws::String& GetSnapshotClusterIdentifier() const { return m_snapshotClusterIdentifier; }
82 inline bool SnapshotClusterIdentifierHasBeenSet() const { return m_snapshotClusterIdentifierHasBeenSet; }
83 template <typename SnapshotClusterIdentifierT = Aws::String>
84 void SetSnapshotClusterIdentifier(SnapshotClusterIdentifierT&& value) {
85 m_snapshotClusterIdentifierHasBeenSet = true;
86 m_snapshotClusterIdentifier = std::forward<SnapshotClusterIdentifierT>(value);
87 }
88 template <typename SnapshotClusterIdentifierT = Aws::String>
89 RevokeSnapshotAccessRequest& WithSnapshotClusterIdentifier(SnapshotClusterIdentifierT&& value) {
90 SetSnapshotClusterIdentifier(std::forward<SnapshotClusterIdentifierT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::String& GetAccountWithRestoreAccess() const { return m_accountWithRestoreAccess; }
101 inline bool AccountWithRestoreAccessHasBeenSet() const { return m_accountWithRestoreAccessHasBeenSet; }
102 template <typename AccountWithRestoreAccessT = Aws::String>
103 void SetAccountWithRestoreAccess(AccountWithRestoreAccessT&& value) {
104 m_accountWithRestoreAccessHasBeenSet = true;
105 m_accountWithRestoreAccess = std::forward<AccountWithRestoreAccessT>(value);
106 }
107 template <typename AccountWithRestoreAccessT = Aws::String>
108 RevokeSnapshotAccessRequest& WithAccountWithRestoreAccess(AccountWithRestoreAccessT&& value) {
109 SetAccountWithRestoreAccess(std::forward<AccountWithRestoreAccessT>(value));
110 return *this;
111 }
113 private:
114 Aws::String m_snapshotIdentifier;
115
116 Aws::String m_snapshotArn;
117
118 Aws::String m_snapshotClusterIdentifier;
119
120 Aws::String m_accountWithRestoreAccess;
121 bool m_snapshotIdentifierHasBeenSet = false;
122 bool m_snapshotArnHasBeenSet = false;
123 bool m_snapshotClusterIdentifierHasBeenSet = false;
124 bool m_accountWithRestoreAccessHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace Redshift
129} // namespace Aws
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
RevokeSnapshotAccessRequest & WithAccountWithRestoreAccess(AccountWithRestoreAccessT &&value)
RevokeSnapshotAccessRequest & WithSnapshotArn(SnapshotArnT &&value)
void SetSnapshotClusterIdentifier(SnapshotClusterIdentifierT &&value)
RevokeSnapshotAccessRequest & WithSnapshotIdentifier(SnapshotIdentifierT &&value)
virtual const char * GetServiceRequestName() const override
void SetAccountWithRestoreAccess(AccountWithRestoreAccessT &&value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
RevokeSnapshotAccessRequest & WithSnapshotClusterIdentifier(SnapshotClusterIdentifierT &&value)
AWS_REDSHIFT_API RevokeSnapshotAccessRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String