AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AuthorizeSnapshotAccessRequest.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:
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 "AuthorizeSnapshotAccess"; }
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); }
53 inline AuthorizeSnapshotAccessRequest& WithSnapshotIdentifier(const char* value) { SetSnapshotIdentifier(value); return *this;}
55
57
60 inline const Aws::String& GetSnapshotArn() const{ return m_snapshotArn; }
61 inline bool SnapshotArnHasBeenSet() const { return m_snapshotArnHasBeenSet; }
62 inline void SetSnapshotArn(const Aws::String& value) { m_snapshotArnHasBeenSet = true; m_snapshotArn = value; }
63 inline void SetSnapshotArn(Aws::String&& value) { m_snapshotArnHasBeenSet = true; m_snapshotArn = std::move(value); }
64 inline void SetSnapshotArn(const char* value) { m_snapshotArnHasBeenSet = true; m_snapshotArn.assign(value); }
65 inline AuthorizeSnapshotAccessRequest& WithSnapshotArn(const Aws::String& value) { SetSnapshotArn(value); return *this;}
66 inline AuthorizeSnapshotAccessRequest& WithSnapshotArn(Aws::String&& value) { SetSnapshotArn(std::move(value)); return *this;}
67 inline AuthorizeSnapshotAccessRequest& WithSnapshotArn(const char* value) { SetSnapshotArn(value); return *this;}
69
71
80 inline const Aws::String& GetSnapshotClusterIdentifier() const{ return m_snapshotClusterIdentifier; }
81 inline bool SnapshotClusterIdentifierHasBeenSet() const { return m_snapshotClusterIdentifierHasBeenSet; }
82 inline void SetSnapshotClusterIdentifier(const Aws::String& value) { m_snapshotClusterIdentifierHasBeenSet = true; m_snapshotClusterIdentifier = value; }
83 inline void SetSnapshotClusterIdentifier(Aws::String&& value) { m_snapshotClusterIdentifierHasBeenSet = true; m_snapshotClusterIdentifier = std::move(value); }
84 inline void SetSnapshotClusterIdentifier(const char* value) { m_snapshotClusterIdentifierHasBeenSet = true; m_snapshotClusterIdentifier.assign(value); }
89
91
96 inline const Aws::String& GetAccountWithRestoreAccess() const{ return m_accountWithRestoreAccess; }
97 inline bool AccountWithRestoreAccessHasBeenSet() const { return m_accountWithRestoreAccessHasBeenSet; }
98 inline void SetAccountWithRestoreAccess(const Aws::String& value) { m_accountWithRestoreAccessHasBeenSet = true; m_accountWithRestoreAccess = value; }
99 inline void SetAccountWithRestoreAccess(Aws::String&& value) { m_accountWithRestoreAccessHasBeenSet = true; m_accountWithRestoreAccess = std::move(value); }
100 inline void SetAccountWithRestoreAccess(const char* value) { m_accountWithRestoreAccessHasBeenSet = true; m_accountWithRestoreAccess.assign(value); }
105 private:
106
107 Aws::String m_snapshotIdentifier;
108 bool m_snapshotIdentifierHasBeenSet = false;
109
110 Aws::String m_snapshotArn;
111 bool m_snapshotArnHasBeenSet = false;
112
113 Aws::String m_snapshotClusterIdentifier;
114 bool m_snapshotClusterIdentifierHasBeenSet = false;
115
116 Aws::String m_accountWithRestoreAccess;
117 bool m_accountWithRestoreAccessHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace Redshift
122} // namespace Aws
AWS_REDSHIFT_API Aws::String SerializePayload() const override
AuthorizeSnapshotAccessRequest & WithSnapshotIdentifier(const Aws::String &value)
AuthorizeSnapshotAccessRequest & WithSnapshotArn(Aws::String &&value)
AuthorizeSnapshotAccessRequest & WithSnapshotArn(const char *value)
AuthorizeSnapshotAccessRequest & WithAccountWithRestoreAccess(const Aws::String &value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AuthorizeSnapshotAccessRequest & WithAccountWithRestoreAccess(const char *value)
AuthorizeSnapshotAccessRequest & WithSnapshotClusterIdentifier(const char *value)
AuthorizeSnapshotAccessRequest & WithSnapshotClusterIdentifier(const Aws::String &value)
AuthorizeSnapshotAccessRequest & WithSnapshotIdentifier(const char *value)
AuthorizeSnapshotAccessRequest & WithAccountWithRestoreAccess(Aws::String &&value)
AuthorizeSnapshotAccessRequest & WithSnapshotArn(const Aws::String &value)
AuthorizeSnapshotAccessRequest & WithSnapshotIdentifier(Aws::String &&value)
AuthorizeSnapshotAccessRequest & WithSnapshotClusterIdentifier(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String