AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSnapshotIdentifier(const Aws::String& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = value; }
49 inline void SetSnapshotIdentifier(Aws::String&& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = std::move(value); }
50 inline void SetSnapshotIdentifier(const char* value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier.assign(value); }
52 inline RevokeSnapshotAccessRequest& WithSnapshotIdentifier(Aws::String&& value) { SetSnapshotIdentifier(std::move(value)); return *this;}
53 inline RevokeSnapshotAccessRequest& WithSnapshotIdentifier(const char* value) { SetSnapshotIdentifier(value); return *this;}
55
57
61 inline const Aws::String& GetSnapshotArn() const{ return m_snapshotArn; }
62 inline bool SnapshotArnHasBeenSet() const { return m_snapshotArnHasBeenSet; }
63 inline void SetSnapshotArn(const Aws::String& value) { m_snapshotArnHasBeenSet = true; m_snapshotArn = value; }
64 inline void SetSnapshotArn(Aws::String&& value) { m_snapshotArnHasBeenSet = true; m_snapshotArn = std::move(value); }
65 inline void SetSnapshotArn(const char* value) { m_snapshotArnHasBeenSet = true; m_snapshotArn.assign(value); }
66 inline RevokeSnapshotAccessRequest& WithSnapshotArn(const Aws::String& value) { SetSnapshotArn(value); return *this;}
67 inline RevokeSnapshotAccessRequest& WithSnapshotArn(Aws::String&& value) { SetSnapshotArn(std::move(value)); return *this;}
68 inline RevokeSnapshotAccessRequest& WithSnapshotArn(const char* value) { SetSnapshotArn(value); return *this;}
70
72
77 inline const Aws::String& GetSnapshotClusterIdentifier() const{ return m_snapshotClusterIdentifier; }
78 inline bool SnapshotClusterIdentifierHasBeenSet() const { return m_snapshotClusterIdentifierHasBeenSet; }
79 inline void SetSnapshotClusterIdentifier(const Aws::String& value) { m_snapshotClusterIdentifierHasBeenSet = true; m_snapshotClusterIdentifier = value; }
80 inline void SetSnapshotClusterIdentifier(Aws::String&& value) { m_snapshotClusterIdentifierHasBeenSet = true; m_snapshotClusterIdentifier = std::move(value); }
81 inline void SetSnapshotClusterIdentifier(const char* value) { m_snapshotClusterIdentifierHasBeenSet = true; m_snapshotClusterIdentifier.assign(value); }
86
88
92 inline const Aws::String& GetAccountWithRestoreAccess() const{ return m_accountWithRestoreAccess; }
93 inline bool AccountWithRestoreAccessHasBeenSet() const { return m_accountWithRestoreAccessHasBeenSet; }
94 inline void SetAccountWithRestoreAccess(const Aws::String& value) { m_accountWithRestoreAccessHasBeenSet = true; m_accountWithRestoreAccess = value; }
95 inline void SetAccountWithRestoreAccess(Aws::String&& value) { m_accountWithRestoreAccessHasBeenSet = true; m_accountWithRestoreAccess = std::move(value); }
96 inline void SetAccountWithRestoreAccess(const char* value) { m_accountWithRestoreAccessHasBeenSet = true; m_accountWithRestoreAccess.assign(value); }
101 private:
102
103 Aws::String m_snapshotIdentifier;
104 bool m_snapshotIdentifierHasBeenSet = false;
105
106 Aws::String m_snapshotArn;
107 bool m_snapshotArnHasBeenSet = false;
108
109 Aws::String m_snapshotClusterIdentifier;
110 bool m_snapshotClusterIdentifierHasBeenSet = false;
111
112 Aws::String m_accountWithRestoreAccess;
113 bool m_accountWithRestoreAccessHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace Redshift
118} // namespace Aws
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
RevokeSnapshotAccessRequest & WithAccountWithRestoreAccess(const char *value)
RevokeSnapshotAccessRequest & WithAccountWithRestoreAccess(Aws::String &&value)
RevokeSnapshotAccessRequest & WithSnapshotArn(const char *value)
RevokeSnapshotAccessRequest & WithSnapshotIdentifier(const Aws::String &value)
RevokeSnapshotAccessRequest & WithSnapshotIdentifier(const char *value)
RevokeSnapshotAccessRequest & WithSnapshotClusterIdentifier(Aws::String &&value)
RevokeSnapshotAccessRequest & WithAccountWithRestoreAccess(const Aws::String &value)
RevokeSnapshotAccessRequest & WithSnapshotIdentifier(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
RevokeSnapshotAccessRequest & WithSnapshotArn(Aws::String &&value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
RevokeSnapshotAccessRequest & WithSnapshotClusterIdentifier(const Aws::String &value)
RevokeSnapshotAccessRequest & WithSnapshotClusterIdentifier(const char *value)
RevokeSnapshotAccessRequest & WithSnapshotArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String