AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
27 AWS_REDSHIFT_API AuthorizeSnapshotAccessRequest() = 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 "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 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 AuthorizeSnapshotAccessRequest& WithSnapshotIdentifier(SnapshotIdentifierT&& value) { SetSnapshotIdentifier(std::forward<SnapshotIdentifierT>(value)); return *this;}
53
55
58 inline const Aws::String& GetSnapshotArn() const { return m_snapshotArn; }
59 inline bool SnapshotArnHasBeenSet() const { return m_snapshotArnHasBeenSet; }
60 template<typename SnapshotArnT = Aws::String>
61 void SetSnapshotArn(SnapshotArnT&& value) { m_snapshotArnHasBeenSet = true; m_snapshotArn = std::forward<SnapshotArnT>(value); }
62 template<typename SnapshotArnT = Aws::String>
63 AuthorizeSnapshotAccessRequest& WithSnapshotArn(SnapshotArnT&& value) { SetSnapshotArn(std::forward<SnapshotArnT>(value)); return *this;}
65
67
76 inline const Aws::String& GetSnapshotClusterIdentifier() const { return m_snapshotClusterIdentifier; }
77 inline bool SnapshotClusterIdentifierHasBeenSet() const { return m_snapshotClusterIdentifierHasBeenSet; }
78 template<typename SnapshotClusterIdentifierT = Aws::String>
79 void SetSnapshotClusterIdentifier(SnapshotClusterIdentifierT&& value) { m_snapshotClusterIdentifierHasBeenSet = true; m_snapshotClusterIdentifier = std::forward<SnapshotClusterIdentifierT>(value); }
80 template<typename SnapshotClusterIdentifierT = Aws::String>
81 AuthorizeSnapshotAccessRequest& WithSnapshotClusterIdentifier(SnapshotClusterIdentifierT&& value) { SetSnapshotClusterIdentifier(std::forward<SnapshotClusterIdentifierT>(value)); return *this;}
83
85
90 inline const Aws::String& GetAccountWithRestoreAccess() const { return m_accountWithRestoreAccess; }
91 inline bool AccountWithRestoreAccessHasBeenSet() const { return m_accountWithRestoreAccessHasBeenSet; }
92 template<typename AccountWithRestoreAccessT = Aws::String>
93 void SetAccountWithRestoreAccess(AccountWithRestoreAccessT&& value) { m_accountWithRestoreAccessHasBeenSet = true; m_accountWithRestoreAccess = std::forward<AccountWithRestoreAccessT>(value); }
94 template<typename AccountWithRestoreAccessT = Aws::String>
95 AuthorizeSnapshotAccessRequest& WithAccountWithRestoreAccess(AccountWithRestoreAccessT&& value) { SetAccountWithRestoreAccess(std::forward<AccountWithRestoreAccessT>(value)); return *this;}
97 private:
98
99 Aws::String m_snapshotIdentifier;
100 bool m_snapshotIdentifierHasBeenSet = false;
101
102 Aws::String m_snapshotArn;
103 bool m_snapshotArnHasBeenSet = false;
104
105 Aws::String m_snapshotClusterIdentifier;
106 bool m_snapshotClusterIdentifierHasBeenSet = false;
107
108 Aws::String m_accountWithRestoreAccess;
109 bool m_accountWithRestoreAccessHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace Redshift
114} // 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