AWS SDK for C++  0.14.3
AWS SDK for C++
AuthorizeSnapshotAccessRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Redshift
23 {
24 namespace Model
25 {
26 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
39  inline const Aws::String& GetSnapshotIdentifier() const{ return m_snapshotIdentifier; }
40 
44  inline void SetSnapshotIdentifier(const Aws::String& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = value; }
45 
49  inline void SetSnapshotIdentifier(Aws::String&& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = value; }
50 
54  inline void SetSnapshotIdentifier(const char* value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier.assign(value); }
55 
59  inline AuthorizeSnapshotAccessRequest& WithSnapshotIdentifier(const Aws::String& value) { SetSnapshotIdentifier(value); return *this;}
60 
64  inline AuthorizeSnapshotAccessRequest& WithSnapshotIdentifier(Aws::String&& value) { SetSnapshotIdentifier(value); return *this;}
65 
69  inline AuthorizeSnapshotAccessRequest& WithSnapshotIdentifier(const char* value) { SetSnapshotIdentifier(value); return *this;}
70 
76  inline const Aws::String& GetSnapshotClusterIdentifier() const{ return m_snapshotClusterIdentifier; }
77 
83  inline void SetSnapshotClusterIdentifier(const Aws::String& value) { m_snapshotClusterIdentifierHasBeenSet = true; m_snapshotClusterIdentifier = value; }
84 
90  inline void SetSnapshotClusterIdentifier(Aws::String&& value) { m_snapshotClusterIdentifierHasBeenSet = true; m_snapshotClusterIdentifier = value; }
91 
97  inline void SetSnapshotClusterIdentifier(const char* value) { m_snapshotClusterIdentifierHasBeenSet = true; m_snapshotClusterIdentifier.assign(value); }
98 
104  inline AuthorizeSnapshotAccessRequest& WithSnapshotClusterIdentifier(const Aws::String& value) { SetSnapshotClusterIdentifier(value); return *this;}
105 
111  inline AuthorizeSnapshotAccessRequest& WithSnapshotClusterIdentifier(Aws::String&& value) { SetSnapshotClusterIdentifier(value); return *this;}
112 
118  inline AuthorizeSnapshotAccessRequest& WithSnapshotClusterIdentifier(const char* value) { SetSnapshotClusterIdentifier(value); return *this;}
119 
124  inline const Aws::String& GetAccountWithRestoreAccess() const{ return m_accountWithRestoreAccess; }
125 
130  inline void SetAccountWithRestoreAccess(const Aws::String& value) { m_accountWithRestoreAccessHasBeenSet = true; m_accountWithRestoreAccess = value; }
131 
136  inline void SetAccountWithRestoreAccess(Aws::String&& value) { m_accountWithRestoreAccessHasBeenSet = true; m_accountWithRestoreAccess = value; }
137 
142  inline void SetAccountWithRestoreAccess(const char* value) { m_accountWithRestoreAccessHasBeenSet = true; m_accountWithRestoreAccess.assign(value); }
143 
148  inline AuthorizeSnapshotAccessRequest& WithAccountWithRestoreAccess(const Aws::String& value) { SetAccountWithRestoreAccess(value); return *this;}
149 
154  inline AuthorizeSnapshotAccessRequest& WithAccountWithRestoreAccess(Aws::String&& value) { SetAccountWithRestoreAccess(value); return *this;}
155 
160  inline AuthorizeSnapshotAccessRequest& WithAccountWithRestoreAccess(const char* value) { SetAccountWithRestoreAccess(value); return *this;}
161 
162  private:
163  Aws::String m_snapshotIdentifier;
164  bool m_snapshotIdentifierHasBeenSet;
165  Aws::String m_snapshotClusterIdentifier;
166  bool m_snapshotClusterIdentifierHasBeenSet;
167  Aws::String m_accountWithRestoreAccess;
168  bool m_accountWithRestoreAccessHasBeenSet;
169  };
170 
171 } // namespace Model
172 } // namespace Redshift
173 } // namespace Aws
AuthorizeSnapshotAccessRequest & WithSnapshotIdentifier(Aws::String &&value)
AuthorizeSnapshotAccessRequest & WithSnapshotIdentifier(const char *value)
AuthorizeSnapshotAccessRequest & WithSnapshotIdentifier(const Aws::String &value)
AuthorizeSnapshotAccessRequest & WithAccountWithRestoreAccess(const Aws::String &value)
AuthorizeSnapshotAccessRequest & WithSnapshotClusterIdentifier(const Aws::String &value)
#define AWS_REDSHIFT_API
AuthorizeSnapshotAccessRequest & WithAccountWithRestoreAccess(Aws::String &&value)
AuthorizeSnapshotAccessRequest & WithSnapshotClusterIdentifier(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AuthorizeSnapshotAccessRequest & WithAccountWithRestoreAccess(const char *value)
AuthorizeSnapshotAccessRequest & WithSnapshotClusterIdentifier(const char *value)
JSON (JavaScript Object Notation).