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

The request object for the CreateBackup operation.

See * Also:

AWS * API Reference

*/ class CreateBackupRequest : public FSxRequest { public: AWS_FSX_API CreateBackupRequest(); // 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 "CreateBackup"; } AWS_FSX_API Aws::String SerializePayload() const override; AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the file system to back up.

*/ inline const Aws::String& GetFileSystemId() const{ return m_fileSystemId; } /** *

The ID of the file system to back up.

*/ inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; } /** *

The ID of the file system to back up.

*/ inline void SetFileSystemId(const Aws::String& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = value; } /** *

The ID of the file system to back up.

*/ inline void SetFileSystemId(Aws::String&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::move(value); } /** *

The ID of the file system to back up.

*/ inline void SetFileSystemId(const char* value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId.assign(value); } /** *

The ID of the file system to back up.

*/ inline CreateBackupRequest& WithFileSystemId(const Aws::String& value) { SetFileSystemId(value); return *this;} /** *

The ID of the file system to back up.

*/ inline CreateBackupRequest& WithFileSystemId(Aws::String&& value) { SetFileSystemId(std::move(value)); return *this;} /** *

The ID of the file system to back up.

*/ inline CreateBackupRequest& WithFileSystemId(const char* value) { SetFileSystemId(value); return *this;} /** *

(Optional) A string of up to 63 ASCII characters that Amazon FSx uses to * ensure idempotent creation. This string is automatically filled on your behalf * when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.

*/ inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } /** *

(Optional) A string of up to 63 ASCII characters that Amazon FSx uses to * ensure idempotent creation. This string is automatically filled on your behalf * when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.

*/ inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } /** *

(Optional) A string of up to 63 ASCII characters that Amazon FSx uses to * ensure idempotent creation. This string is automatically filled on your behalf * when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.

*/ inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } /** *

(Optional) A string of up to 63 ASCII characters that Amazon FSx uses to * ensure idempotent creation. This string is automatically filled on your behalf * when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.

*/ inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } /** *

(Optional) A string of up to 63 ASCII characters that Amazon FSx uses to * ensure idempotent creation. This string is automatically filled on your behalf * when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.

*/ inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } /** *

(Optional) A string of up to 63 ASCII characters that Amazon FSx uses to * ensure idempotent creation. This string is automatically filled on your behalf * when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.

*/ inline CreateBackupRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} /** *

(Optional) A string of up to 63 ASCII characters that Amazon FSx uses to * ensure idempotent creation. This string is automatically filled on your behalf * when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.

*/ inline CreateBackupRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} /** *

(Optional) A string of up to 63 ASCII characters that Amazon FSx uses to * ensure idempotent creation. This string is automatically filled on your behalf * when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.

*/ inline CreateBackupRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} /** *

(Optional) The tags to apply to the backup at backup creation. The key value * of the Name tag appears in the console as the backup name. If you * have set CopyTagsToBackups to true, and you specify * one or more tags using the CreateBackup operation, no existing file * system tags are copied from the file system to the backup.

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

(Optional) The tags to apply to the backup at backup creation. The key value * of the Name tag appears in the console as the backup name. If you * have set CopyTagsToBackups to true, and you specify * one or more tags using the CreateBackup operation, no existing file * system tags are copied from the file system to the backup.

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

(Optional) The tags to apply to the backup at backup creation. The key value * of the Name tag appears in the console as the backup name. If you * have set CopyTagsToBackups to true, and you specify * one or more tags using the CreateBackup operation, no existing file * system tags are copied from the file system to the backup.

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

(Optional) The tags to apply to the backup at backup creation. The key value * of the Name tag appears in the console as the backup name. If you * have set CopyTagsToBackups to true, and you specify * one or more tags using the CreateBackup operation, no existing file * system tags are copied from the file system to the backup.

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

(Optional) The tags to apply to the backup at backup creation. The key value * of the Name tag appears in the console as the backup name. If you * have set CopyTagsToBackups to true, and you specify * one or more tags using the CreateBackup operation, no existing file * system tags are copied from the file system to the backup.

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

(Optional) The tags to apply to the backup at backup creation. The key value * of the Name tag appears in the console as the backup name. If you * have set CopyTagsToBackups to true, and you specify * one or more tags using the CreateBackup operation, no existing file * system tags are copied from the file system to the backup.

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

(Optional) The tags to apply to the backup at backup creation. The key value * of the Name tag appears in the console as the backup name. If you * have set CopyTagsToBackups to true, and you specify * one or more tags using the CreateBackup operation, no existing file * system tags are copied from the file system to the backup.

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

(Optional) The tags to apply to the backup at backup creation. The key value * of the Name tag appears in the console as the backup name. If you * have set CopyTagsToBackups to true, and you specify * one or more tags using the CreateBackup operation, no existing file * system tags are copied from the file system to the backup.

*/ inline CreateBackupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

(Optional) The ID of the FSx for ONTAP volume to back up.

*/ inline const Aws::String& GetVolumeId() const{ return m_volumeId; } /** *

(Optional) The ID of the FSx for ONTAP volume to back up.

*/ inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; } /** *

(Optional) The ID of the FSx for ONTAP volume to back up.

*/ inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; } /** *

(Optional) The ID of the FSx for ONTAP volume to back up.

*/ inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::move(value); } /** *

(Optional) The ID of the FSx for ONTAP volume to back up.

*/ inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); } /** *

(Optional) The ID of the FSx for ONTAP volume to back up.

*/ inline CreateBackupRequest& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;} /** *

(Optional) The ID of the FSx for ONTAP volume to back up.

*/ inline CreateBackupRequest& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;} /** *

(Optional) The ID of the FSx for ONTAP volume to back up.

*/ inline CreateBackupRequest& WithVolumeId(const char* value) { SetVolumeId(value); return *this;} private: Aws::String m_fileSystemId; bool m_fileSystemIdHasBeenSet = false; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; Aws::String m_volumeId; bool m_volumeIdHasBeenSet = false; }; } // namespace Model } // namespace FSx } // namespace Aws