/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace StorageGateway { namespace Model { /** */ class CreateSnapshotFromVolumeRecoveryPointRequest : public StorageGatewayRequest { public: AWS_STORAGEGATEWAY_API CreateSnapshotFromVolumeRecoveryPointRequest(); // 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 "CreateSnapshotFromVolumeRecoveryPoint"; } AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override; AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) of the iSCSI volume target. Use the * DescribeStorediSCSIVolumes operation to return to retrieve the TargetARN * for specified VolumeARN.

*/ inline const Aws::String& GetVolumeARN() const{ return m_volumeARN; } /** *

The Amazon Resource Name (ARN) of the iSCSI volume target. Use the * DescribeStorediSCSIVolumes operation to return to retrieve the TargetARN * for specified VolumeARN.

*/ inline bool VolumeARNHasBeenSet() const { return m_volumeARNHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the iSCSI volume target. Use the * DescribeStorediSCSIVolumes operation to return to retrieve the TargetARN * for specified VolumeARN.

*/ inline void SetVolumeARN(const Aws::String& value) { m_volumeARNHasBeenSet = true; m_volumeARN = value; } /** *

The Amazon Resource Name (ARN) of the iSCSI volume target. Use the * DescribeStorediSCSIVolumes operation to return to retrieve the TargetARN * for specified VolumeARN.

*/ inline void SetVolumeARN(Aws::String&& value) { m_volumeARNHasBeenSet = true; m_volumeARN = std::move(value); } /** *

The Amazon Resource Name (ARN) of the iSCSI volume target. Use the * DescribeStorediSCSIVolumes operation to return to retrieve the TargetARN * for specified VolumeARN.

*/ inline void SetVolumeARN(const char* value) { m_volumeARNHasBeenSet = true; m_volumeARN.assign(value); } /** *

The Amazon Resource Name (ARN) of the iSCSI volume target. Use the * DescribeStorediSCSIVolumes operation to return to retrieve the TargetARN * for specified VolumeARN.

*/ inline CreateSnapshotFromVolumeRecoveryPointRequest& WithVolumeARN(const Aws::String& value) { SetVolumeARN(value); return *this;} /** *

The Amazon Resource Name (ARN) of the iSCSI volume target. Use the * DescribeStorediSCSIVolumes operation to return to retrieve the TargetARN * for specified VolumeARN.

*/ inline CreateSnapshotFromVolumeRecoveryPointRequest& WithVolumeARN(Aws::String&& value) { SetVolumeARN(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the iSCSI volume target. Use the * DescribeStorediSCSIVolumes operation to return to retrieve the TargetARN * for specified VolumeARN.

*/ inline CreateSnapshotFromVolumeRecoveryPointRequest& WithVolumeARN(const char* value) { SetVolumeARN(value); return *this;} /** *

Textual description of the snapshot that appears in the Amazon EC2 console, * Elastic Block Store snapshots panel in the Description field, and in the * Storage Gateway snapshot Details pane, Description field.

*/ inline const Aws::String& GetSnapshotDescription() const{ return m_snapshotDescription; } /** *

Textual description of the snapshot that appears in the Amazon EC2 console, * Elastic Block Store snapshots panel in the Description field, and in the * Storage Gateway snapshot Details pane, Description field.

*/ inline bool SnapshotDescriptionHasBeenSet() const { return m_snapshotDescriptionHasBeenSet; } /** *

Textual description of the snapshot that appears in the Amazon EC2 console, * Elastic Block Store snapshots panel in the Description field, and in the * Storage Gateway snapshot Details pane, Description field.

*/ inline void SetSnapshotDescription(const Aws::String& value) { m_snapshotDescriptionHasBeenSet = true; m_snapshotDescription = value; } /** *

Textual description of the snapshot that appears in the Amazon EC2 console, * Elastic Block Store snapshots panel in the Description field, and in the * Storage Gateway snapshot Details pane, Description field.

*/ inline void SetSnapshotDescription(Aws::String&& value) { m_snapshotDescriptionHasBeenSet = true; m_snapshotDescription = std::move(value); } /** *

Textual description of the snapshot that appears in the Amazon EC2 console, * Elastic Block Store snapshots panel in the Description field, and in the * Storage Gateway snapshot Details pane, Description field.

*/ inline void SetSnapshotDescription(const char* value) { m_snapshotDescriptionHasBeenSet = true; m_snapshotDescription.assign(value); } /** *

Textual description of the snapshot that appears in the Amazon EC2 console, * Elastic Block Store snapshots panel in the Description field, and in the * Storage Gateway snapshot Details pane, Description field.

*/ inline CreateSnapshotFromVolumeRecoveryPointRequest& WithSnapshotDescription(const Aws::String& value) { SetSnapshotDescription(value); return *this;} /** *

Textual description of the snapshot that appears in the Amazon EC2 console, * Elastic Block Store snapshots panel in the Description field, and in the * Storage Gateway snapshot Details pane, Description field.

*/ inline CreateSnapshotFromVolumeRecoveryPointRequest& WithSnapshotDescription(Aws::String&& value) { SetSnapshotDescription(std::move(value)); return *this;} /** *

Textual description of the snapshot that appears in the Amazon EC2 console, * Elastic Block Store snapshots panel in the Description field, and in the * Storage Gateway snapshot Details pane, Description field.

*/ inline CreateSnapshotFromVolumeRecoveryPointRequest& WithSnapshotDescription(const char* value) { SetSnapshotDescription(value); return *this;} /** *

A list of up to 50 tags that can be assigned to a snapshot. Each tag is a * key-value pair.

Valid characters for key and value are letters, * spaces, and numbers representable in UTF-8 format, and the following special * characters: + - = . _ : / @. The maximum length of a tag's key is 128 * characters, and the maximum length for a tag's value is 256.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A list of up to 50 tags that can be assigned to a snapshot. Each tag is a * key-value pair.

Valid characters for key and value are letters, * spaces, and numbers representable in UTF-8 format, and the following special * characters: + - = . _ : / @. The maximum length of a tag's key is 128 * characters, and the maximum length for a tag's value is 256.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of up to 50 tags that can be assigned to a snapshot. Each tag is a * key-value pair.

Valid characters for key and value are letters, * spaces, and numbers representable in UTF-8 format, and the following special * characters: + - = . _ : / @. The maximum length of a tag's key is 128 * characters, and the maximum length for a tag's value is 256.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of up to 50 tags that can be assigned to a snapshot. Each tag is a * key-value pair.

Valid characters for key and value are letters, * spaces, and numbers representable in UTF-8 format, and the following special * characters: + - = . _ : / @. The maximum length of a tag's key is 128 * characters, and the maximum length for a tag's value is 256.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of up to 50 tags that can be assigned to a snapshot. Each tag is a * key-value pair.

Valid characters for key and value are letters, * spaces, and numbers representable in UTF-8 format, and the following special * characters: + - = . _ : / @. The maximum length of a tag's key is 128 * characters, and the maximum length for a tag's value is 256.

*/ inline CreateSnapshotFromVolumeRecoveryPointRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of up to 50 tags that can be assigned to a snapshot. Each tag is a * key-value pair.

Valid characters for key and value are letters, * spaces, and numbers representable in UTF-8 format, and the following special * characters: + - = . _ : / @. The maximum length of a tag's key is 128 * characters, and the maximum length for a tag's value is 256.

*/ inline CreateSnapshotFromVolumeRecoveryPointRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A list of up to 50 tags that can be assigned to a snapshot. Each tag is a * key-value pair.

Valid characters for key and value are letters, * spaces, and numbers representable in UTF-8 format, and the following special * characters: + - = . _ : / @. The maximum length of a tag's key is 128 * characters, and the maximum length for a tag's value is 256.

*/ inline CreateSnapshotFromVolumeRecoveryPointRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of up to 50 tags that can be assigned to a snapshot. Each tag is a * key-value pair.

Valid characters for key and value are letters, * spaces, and numbers representable in UTF-8 format, and the following special * characters: + - = . _ : / @. The maximum length of a tag's key is 128 * characters, and the maximum length for a tag's value is 256.

*/ inline CreateSnapshotFromVolumeRecoveryPointRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_volumeARN; bool m_volumeARNHasBeenSet = false; Aws::String m_snapshotDescription; bool m_snapshotDescriptionHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace StorageGateway } // namespace Aws