/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include See Also:
AWS
* API Reference
The identifier of the snapshot the account is authorized to restore.
*/ inline const Aws::String& GetSnapshotIdentifier() const{ return m_snapshotIdentifier; } /** *The identifier of the snapshot the account is authorized to restore.
*/ inline bool SnapshotIdentifierHasBeenSet() const { return m_snapshotIdentifierHasBeenSet; } /** *The identifier of the snapshot the account is authorized to restore.
*/ inline void SetSnapshotIdentifier(const Aws::String& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = value; } /** *The identifier of the snapshot the account is authorized to restore.
*/ inline void SetSnapshotIdentifier(Aws::String&& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = std::move(value); } /** *The identifier of the snapshot the account is authorized to restore.
*/ inline void SetSnapshotIdentifier(const char* value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier.assign(value); } /** *The identifier of the snapshot the account is authorized to restore.
*/ inline AuthorizeSnapshotAccessRequest& WithSnapshotIdentifier(const Aws::String& value) { SetSnapshotIdentifier(value); return *this;} /** *The identifier of the snapshot the account is authorized to restore.
*/ inline AuthorizeSnapshotAccessRequest& WithSnapshotIdentifier(Aws::String&& value) { SetSnapshotIdentifier(std::move(value)); return *this;} /** *The identifier of the snapshot the account is authorized to restore.
*/ inline AuthorizeSnapshotAccessRequest& WithSnapshotIdentifier(const char* value) { SetSnapshotIdentifier(value); return *this;} /** *The Amazon Resource Name (ARN) of the snapshot to authorize access to.
*/ inline const Aws::String& GetSnapshotArn() const{ return m_snapshotArn; } /** *The Amazon Resource Name (ARN) of the snapshot to authorize access to.
*/ inline bool SnapshotArnHasBeenSet() const { return m_snapshotArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the snapshot to authorize access to.
*/ inline void SetSnapshotArn(const Aws::String& value) { m_snapshotArnHasBeenSet = true; m_snapshotArn = value; } /** *The Amazon Resource Name (ARN) of the snapshot to authorize access to.
*/ inline void SetSnapshotArn(Aws::String&& value) { m_snapshotArnHasBeenSet = true; m_snapshotArn = std::move(value); } /** *The Amazon Resource Name (ARN) of the snapshot to authorize access to.
*/ inline void SetSnapshotArn(const char* value) { m_snapshotArnHasBeenSet = true; m_snapshotArn.assign(value); } /** *The Amazon Resource Name (ARN) of the snapshot to authorize access to.
*/ inline AuthorizeSnapshotAccessRequest& WithSnapshotArn(const Aws::String& value) { SetSnapshotArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the snapshot to authorize access to.
*/ inline AuthorizeSnapshotAccessRequest& WithSnapshotArn(Aws::String&& value) { SetSnapshotArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the snapshot to authorize access to.
*/ inline AuthorizeSnapshotAccessRequest& WithSnapshotArn(const char* value) { SetSnapshotArn(value); return *this;} /** *The identifier of the cluster the snapshot was created from. This parameter * is required if your IAM user has a policy containing a snapshot resource element * that specifies anything other than * for the cluster name.
*/ inline const Aws::String& GetSnapshotClusterIdentifier() const{ return m_snapshotClusterIdentifier; } /** *The identifier of the cluster the snapshot was created from. This parameter * is required if your IAM user has a policy containing a snapshot resource element * that specifies anything other than * for the cluster name.
*/ inline bool SnapshotClusterIdentifierHasBeenSet() const { return m_snapshotClusterIdentifierHasBeenSet; } /** *The identifier of the cluster the snapshot was created from. This parameter * is required if your IAM user has a policy containing a snapshot resource element * that specifies anything other than * for the cluster name.
*/ inline void SetSnapshotClusterIdentifier(const Aws::String& value) { m_snapshotClusterIdentifierHasBeenSet = true; m_snapshotClusterIdentifier = value; } /** *The identifier of the cluster the snapshot was created from. This parameter * is required if your IAM user has a policy containing a snapshot resource element * that specifies anything other than * for the cluster name.
*/ inline void SetSnapshotClusterIdentifier(Aws::String&& value) { m_snapshotClusterIdentifierHasBeenSet = true; m_snapshotClusterIdentifier = std::move(value); } /** *The identifier of the cluster the snapshot was created from. This parameter * is required if your IAM user has a policy containing a snapshot resource element * that specifies anything other than * for the cluster name.
*/ inline void SetSnapshotClusterIdentifier(const char* value) { m_snapshotClusterIdentifierHasBeenSet = true; m_snapshotClusterIdentifier.assign(value); } /** *The identifier of the cluster the snapshot was created from. This parameter * is required if your IAM user has a policy containing a snapshot resource element * that specifies anything other than * for the cluster name.
*/ inline AuthorizeSnapshotAccessRequest& WithSnapshotClusterIdentifier(const Aws::String& value) { SetSnapshotClusterIdentifier(value); return *this;} /** *The identifier of the cluster the snapshot was created from. This parameter * is required if your IAM user has a policy containing a snapshot resource element * that specifies anything other than * for the cluster name.
*/ inline AuthorizeSnapshotAccessRequest& WithSnapshotClusterIdentifier(Aws::String&& value) { SetSnapshotClusterIdentifier(std::move(value)); return *this;} /** *The identifier of the cluster the snapshot was created from. This parameter * is required if your IAM user has a policy containing a snapshot resource element * that specifies anything other than * for the cluster name.
*/ inline AuthorizeSnapshotAccessRequest& WithSnapshotClusterIdentifier(const char* value) { SetSnapshotClusterIdentifier(value); return *this;} /** *The identifier of the Amazon Web Services account authorized to restore the * specified snapshot.
To share a snapshot with Amazon Web Services Support, * specify amazon-redshift-support.
*/ inline const Aws::String& GetAccountWithRestoreAccess() const{ return m_accountWithRestoreAccess; } /** *The identifier of the Amazon Web Services account authorized to restore the * specified snapshot.
To share a snapshot with Amazon Web Services Support, * specify amazon-redshift-support.
*/ inline bool AccountWithRestoreAccessHasBeenSet() const { return m_accountWithRestoreAccessHasBeenSet; } /** *The identifier of the Amazon Web Services account authorized to restore the * specified snapshot.
To share a snapshot with Amazon Web Services Support, * specify amazon-redshift-support.
*/ inline void SetAccountWithRestoreAccess(const Aws::String& value) { m_accountWithRestoreAccessHasBeenSet = true; m_accountWithRestoreAccess = value; } /** *The identifier of the Amazon Web Services account authorized to restore the * specified snapshot.
To share a snapshot with Amazon Web Services Support, * specify amazon-redshift-support.
*/ inline void SetAccountWithRestoreAccess(Aws::String&& value) { m_accountWithRestoreAccessHasBeenSet = true; m_accountWithRestoreAccess = std::move(value); } /** *The identifier of the Amazon Web Services account authorized to restore the * specified snapshot.
To share a snapshot with Amazon Web Services Support, * specify amazon-redshift-support.
*/ inline void SetAccountWithRestoreAccess(const char* value) { m_accountWithRestoreAccessHasBeenSet = true; m_accountWithRestoreAccess.assign(value); } /** *The identifier of the Amazon Web Services account authorized to restore the * specified snapshot.
To share a snapshot with Amazon Web Services Support, * specify amazon-redshift-support.
*/ inline AuthorizeSnapshotAccessRequest& WithAccountWithRestoreAccess(const Aws::String& value) { SetAccountWithRestoreAccess(value); return *this;} /** *The identifier of the Amazon Web Services account authorized to restore the * specified snapshot.
To share a snapshot with Amazon Web Services Support, * specify amazon-redshift-support.
*/ inline AuthorizeSnapshotAccessRequest& WithAccountWithRestoreAccess(Aws::String&& value) { SetAccountWithRestoreAccess(std::move(value)); return *this;} /** *The identifier of the Amazon Web Services account authorized to restore the * specified snapshot.
To share a snapshot with Amazon Web Services Support, * specify amazon-redshift-support.
*/ inline AuthorizeSnapshotAccessRequest& WithAccountWithRestoreAccess(const char* value) { SetAccountWithRestoreAccess(value); return *this;} private: Aws::String m_snapshotIdentifier; bool m_snapshotIdentifierHasBeenSet = false; Aws::String m_snapshotArn; bool m_snapshotArnHasBeenSet = false; Aws::String m_snapshotClusterIdentifier; bool m_snapshotClusterIdentifierHasBeenSet = false; Aws::String m_accountWithRestoreAccess; bool m_accountWithRestoreAccessHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws