/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Redshift { namespace Model { /** *

See Also:

AWS * API Reference

*/ class RevokeSnapshotAccessRequest : public RedshiftRequest { public: AWS_REDSHIFT_API RevokeSnapshotAccessRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "RevokeSnapshotAccess"; } AWS_REDSHIFT_API Aws::String SerializePayload() const override; protected: AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The identifier of the snapshot that the account can no longer access.

*/ inline const Aws::String& GetSnapshotIdentifier() const{ return m_snapshotIdentifier; } /** *

The identifier of the snapshot that the account can no longer access.

*/ inline bool SnapshotIdentifierHasBeenSet() const { return m_snapshotIdentifierHasBeenSet; } /** *

The identifier of the snapshot that the account can no longer access.

*/ inline void SetSnapshotIdentifier(const Aws::String& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = value; } /** *

The identifier of the snapshot that the account can no longer access.

*/ inline void SetSnapshotIdentifier(Aws::String&& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = std::move(value); } /** *

The identifier of the snapshot that the account can no longer access.

*/ inline void SetSnapshotIdentifier(const char* value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier.assign(value); } /** *

The identifier of the snapshot that the account can no longer access.

*/ inline RevokeSnapshotAccessRequest& WithSnapshotIdentifier(const Aws::String& value) { SetSnapshotIdentifier(value); return *this;} /** *

The identifier of the snapshot that the account can no longer access.

*/ inline RevokeSnapshotAccessRequest& WithSnapshotIdentifier(Aws::String&& value) { SetSnapshotIdentifier(std::move(value)); return *this;} /** *

The identifier of the snapshot that the account can no longer access.

*/ inline RevokeSnapshotAccessRequest& WithSnapshotIdentifier(const char* value) { SetSnapshotIdentifier(value); return *this;} /** *

The Amazon Resource Name (ARN) of the snapshot associated with the message to * revoke access.

*/ inline const Aws::String& GetSnapshotArn() const{ return m_snapshotArn; } /** *

The Amazon Resource Name (ARN) of the snapshot associated with the message to * revoke access.

*/ inline bool SnapshotArnHasBeenSet() const { return m_snapshotArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the snapshot associated with the message to * revoke access.

*/ inline void SetSnapshotArn(const Aws::String& value) { m_snapshotArnHasBeenSet = true; m_snapshotArn = value; } /** *

The Amazon Resource Name (ARN) of the snapshot associated with the message to * revoke access.

*/ inline void SetSnapshotArn(Aws::String&& value) { m_snapshotArnHasBeenSet = true; m_snapshotArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the snapshot associated with the message to * revoke access.

*/ inline void SetSnapshotArn(const char* value) { m_snapshotArnHasBeenSet = true; m_snapshotArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the snapshot associated with the message to * revoke access.

*/ inline RevokeSnapshotAccessRequest& WithSnapshotArn(const Aws::String& value) { SetSnapshotArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the snapshot associated with the message to * revoke access.

*/ inline RevokeSnapshotAccessRequest& WithSnapshotArn(Aws::String&& value) { SetSnapshotArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the snapshot associated with the message to * revoke access.

*/ inline RevokeSnapshotAccessRequest& 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 RevokeSnapshotAccessRequest& 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 RevokeSnapshotAccessRequest& 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 RevokeSnapshotAccessRequest& WithSnapshotClusterIdentifier(const char* value) { SetSnapshotClusterIdentifier(value); return *this;} /** *

The identifier of the Amazon Web Services account that can no longer restore * the specified snapshot.

*/ inline const Aws::String& GetAccountWithRestoreAccess() const{ return m_accountWithRestoreAccess; } /** *

The identifier of the Amazon Web Services account that can no longer restore * the specified snapshot.

*/ inline bool AccountWithRestoreAccessHasBeenSet() const { return m_accountWithRestoreAccessHasBeenSet; } /** *

The identifier of the Amazon Web Services account that can no longer restore * the specified snapshot.

*/ inline void SetAccountWithRestoreAccess(const Aws::String& value) { m_accountWithRestoreAccessHasBeenSet = true; m_accountWithRestoreAccess = value; } /** *

The identifier of the Amazon Web Services account that can no longer restore * the specified snapshot.

*/ inline void SetAccountWithRestoreAccess(Aws::String&& value) { m_accountWithRestoreAccessHasBeenSet = true; m_accountWithRestoreAccess = std::move(value); } /** *

The identifier of the Amazon Web Services account that can no longer restore * the specified snapshot.

*/ inline void SetAccountWithRestoreAccess(const char* value) { m_accountWithRestoreAccessHasBeenSet = true; m_accountWithRestoreAccess.assign(value); } /** *

The identifier of the Amazon Web Services account that can no longer restore * the specified snapshot.

*/ inline RevokeSnapshotAccessRequest& WithAccountWithRestoreAccess(const Aws::String& value) { SetAccountWithRestoreAccess(value); return *this;} /** *

The identifier of the Amazon Web Services account that can no longer restore * the specified snapshot.

*/ inline RevokeSnapshotAccessRequest& WithAccountWithRestoreAccess(Aws::String&& value) { SetAccountWithRestoreAccess(std::move(value)); return *this;} /** *

The identifier of the Amazon Web Services account that can no longer restore * the specified snapshot.

*/ inline RevokeSnapshotAccessRequest& 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