AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RevokeSnapshotAccessRequest.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 <utility>
11
12namespace Aws
13{
14namespace Redshift
15{
16namespace Model
17{
18
25 {
26 public:
27 AWS_REDSHIFT_API RevokeSnapshotAccessRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "RevokeSnapshotAccess"; }
34
35 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
46 inline const Aws::String& GetSnapshotIdentifier() const { return m_snapshotIdentifier; }
47 inline bool SnapshotIdentifierHasBeenSet() const { return m_snapshotIdentifierHasBeenSet; }
48 template<typename SnapshotIdentifierT = Aws::String>
49 void SetSnapshotIdentifier(SnapshotIdentifierT&& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = std::forward<SnapshotIdentifierT>(value); }
50 template<typename SnapshotIdentifierT = Aws::String>
51 RevokeSnapshotAccessRequest& WithSnapshotIdentifier(SnapshotIdentifierT&& value) { SetSnapshotIdentifier(std::forward<SnapshotIdentifierT>(value)); return *this;}
53
55
59 inline const Aws::String& GetSnapshotArn() const { return m_snapshotArn; }
60 inline bool SnapshotArnHasBeenSet() const { return m_snapshotArnHasBeenSet; }
61 template<typename SnapshotArnT = Aws::String>
62 void SetSnapshotArn(SnapshotArnT&& value) { m_snapshotArnHasBeenSet = true; m_snapshotArn = std::forward<SnapshotArnT>(value); }
63 template<typename SnapshotArnT = Aws::String>
64 RevokeSnapshotAccessRequest& WithSnapshotArn(SnapshotArnT&& value) { SetSnapshotArn(std::forward<SnapshotArnT>(value)); return *this;}
66
68
73 inline const Aws::String& GetSnapshotClusterIdentifier() const { return m_snapshotClusterIdentifier; }
74 inline bool SnapshotClusterIdentifierHasBeenSet() const { return m_snapshotClusterIdentifierHasBeenSet; }
75 template<typename SnapshotClusterIdentifierT = Aws::String>
76 void SetSnapshotClusterIdentifier(SnapshotClusterIdentifierT&& value) { m_snapshotClusterIdentifierHasBeenSet = true; m_snapshotClusterIdentifier = std::forward<SnapshotClusterIdentifierT>(value); }
77 template<typename SnapshotClusterIdentifierT = Aws::String>
78 RevokeSnapshotAccessRequest& WithSnapshotClusterIdentifier(SnapshotClusterIdentifierT&& value) { SetSnapshotClusterIdentifier(std::forward<SnapshotClusterIdentifierT>(value)); return *this;}
80
82
86 inline const Aws::String& GetAccountWithRestoreAccess() const { return m_accountWithRestoreAccess; }
87 inline bool AccountWithRestoreAccessHasBeenSet() const { return m_accountWithRestoreAccessHasBeenSet; }
88 template<typename AccountWithRestoreAccessT = Aws::String>
89 void SetAccountWithRestoreAccess(AccountWithRestoreAccessT&& value) { m_accountWithRestoreAccessHasBeenSet = true; m_accountWithRestoreAccess = std::forward<AccountWithRestoreAccessT>(value); }
90 template<typename AccountWithRestoreAccessT = Aws::String>
91 RevokeSnapshotAccessRequest& WithAccountWithRestoreAccess(AccountWithRestoreAccessT&& value) { SetAccountWithRestoreAccess(std::forward<AccountWithRestoreAccessT>(value)); return *this;}
93 private:
94
95 Aws::String m_snapshotIdentifier;
96 bool m_snapshotIdentifierHasBeenSet = false;
97
98 Aws::String m_snapshotArn;
99 bool m_snapshotArnHasBeenSet = false;
100
101 Aws::String m_snapshotClusterIdentifier;
102 bool m_snapshotClusterIdentifierHasBeenSet = false;
103
104 Aws::String m_accountWithRestoreAccess;
105 bool m_accountWithRestoreAccessHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace Redshift
110} // 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