/** * 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 RedshiftServerless { namespace Model { /** */ class GetSnapshotRequest : public RedshiftServerlessRequest { public: AWS_REDSHIFTSERVERLESS_API GetSnapshotRequest(); // 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 "GetSnapshot"; } AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override; AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The owner Amazon Web Services account of a snapshot shared with another * user.

*/ inline const Aws::String& GetOwnerAccount() const{ return m_ownerAccount; } /** *

The owner Amazon Web Services account of a snapshot shared with another * user.

*/ inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; } /** *

The owner Amazon Web Services account of a snapshot shared with another * user.

*/ inline void SetOwnerAccount(const Aws::String& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = value; } /** *

The owner Amazon Web Services account of a snapshot shared with another * user.

*/ inline void SetOwnerAccount(Aws::String&& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = std::move(value); } /** *

The owner Amazon Web Services account of a snapshot shared with another * user.

*/ inline void SetOwnerAccount(const char* value) { m_ownerAccountHasBeenSet = true; m_ownerAccount.assign(value); } /** *

The owner Amazon Web Services account of a snapshot shared with another * user.

*/ inline GetSnapshotRequest& WithOwnerAccount(const Aws::String& value) { SetOwnerAccount(value); return *this;} /** *

The owner Amazon Web Services account of a snapshot shared with another * user.

*/ inline GetSnapshotRequest& WithOwnerAccount(Aws::String&& value) { SetOwnerAccount(std::move(value)); return *this;} /** *

The owner Amazon Web Services account of a snapshot shared with another * user.

*/ inline GetSnapshotRequest& WithOwnerAccount(const char* value) { SetOwnerAccount(value); return *this;} /** *

The Amazon Resource Name (ARN) of the snapshot to return.

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

The Amazon Resource Name (ARN) of the snapshot to return.

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

The Amazon Resource Name (ARN) of the snapshot to return.

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

The Amazon Resource Name (ARN) of the snapshot to return.

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

The Amazon Resource Name (ARN) of the snapshot to return.

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

The Amazon Resource Name (ARN) of the snapshot to return.

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

The Amazon Resource Name (ARN) of the snapshot to return.

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

The Amazon Resource Name (ARN) of the snapshot to return.

*/ inline GetSnapshotRequest& WithSnapshotArn(const char* value) { SetSnapshotArn(value); return *this;} /** *

The name of the snapshot to return.

*/ inline const Aws::String& GetSnapshotName() const{ return m_snapshotName; } /** *

The name of the snapshot to return.

*/ inline bool SnapshotNameHasBeenSet() const { return m_snapshotNameHasBeenSet; } /** *

The name of the snapshot to return.

*/ inline void SetSnapshotName(const Aws::String& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = value; } /** *

The name of the snapshot to return.

*/ inline void SetSnapshotName(Aws::String&& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = std::move(value); } /** *

The name of the snapshot to return.

*/ inline void SetSnapshotName(const char* value) { m_snapshotNameHasBeenSet = true; m_snapshotName.assign(value); } /** *

The name of the snapshot to return.

*/ inline GetSnapshotRequest& WithSnapshotName(const Aws::String& value) { SetSnapshotName(value); return *this;} /** *

The name of the snapshot to return.

*/ inline GetSnapshotRequest& WithSnapshotName(Aws::String&& value) { SetSnapshotName(std::move(value)); return *this;} /** *

The name of the snapshot to return.

*/ inline GetSnapshotRequest& WithSnapshotName(const char* value) { SetSnapshotName(value); return *this;} private: Aws::String m_ownerAccount; bool m_ownerAccountHasBeenSet = false; Aws::String m_snapshotArn; bool m_snapshotArnHasBeenSet = false; Aws::String m_snapshotName; bool m_snapshotNameHasBeenSet = false; }; } // namespace Model } // namespace RedshiftServerless } // namespace Aws