/** * 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 AWS_FSX_API CreateBackupRequest : public FSxRequest { public: 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::String SerializePayload() const override; 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 64 ASCII characters that Amazon FSx uses to * ensure idempotent creation. This string is automatically filled on your behalf * when you use the AWS Command Line Interface (AWS CLI) or an AWS SDK.

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

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

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

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

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

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

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

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

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

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

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

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

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

(Optional) A string of up to 64 ASCII characters that Amazon FSx uses to * ensure idempotent creation. This string is automatically filled on your behalf * when you use the AWS Command Line Interface (AWS CLI) or an AWS 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 action, 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 action, 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 action, 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 action, 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 action, 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 action, 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 action, 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 action, 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; } private: Aws::String m_fileSystemId; bool m_fileSystemIdHasBeenSet; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet; Aws::Vector m_tags; bool m_tagsHasBeenSet; }; } // namespace Model } // namespace FSx } // namespace Aws