/** * 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 Backup { namespace Model { /** */ class StartBackupJobRequest : public BackupRequest { public: AWS_BACKUP_API StartBackupJobRequest(); // 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 "StartBackupJob"; } AWS_BACKUP_API Aws::String SerializePayload() const override; /** *

The name of a logical container where backups are stored. Backup vaults are * identified by names that are unique to the account used to create them and the * Amazon Web Services Region where they are created. They consist of lowercase * letters, numbers, and hyphens.

*/ inline const Aws::String& GetBackupVaultName() const{ return m_backupVaultName; } /** *

The name of a logical container where backups are stored. Backup vaults are * identified by names that are unique to the account used to create them and the * Amazon Web Services Region where they are created. They consist of lowercase * letters, numbers, and hyphens.

*/ inline bool BackupVaultNameHasBeenSet() const { return m_backupVaultNameHasBeenSet; } /** *

The name of a logical container where backups are stored. Backup vaults are * identified by names that are unique to the account used to create them and the * Amazon Web Services Region where they are created. They consist of lowercase * letters, numbers, and hyphens.

*/ inline void SetBackupVaultName(const Aws::String& value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName = value; } /** *

The name of a logical container where backups are stored. Backup vaults are * identified by names that are unique to the account used to create them and the * Amazon Web Services Region where they are created. They consist of lowercase * letters, numbers, and hyphens.

*/ inline void SetBackupVaultName(Aws::String&& value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName = std::move(value); } /** *

The name of a logical container where backups are stored. Backup vaults are * identified by names that are unique to the account used to create them and the * Amazon Web Services Region where they are created. They consist of lowercase * letters, numbers, and hyphens.

*/ inline void SetBackupVaultName(const char* value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName.assign(value); } /** *

The name of a logical container where backups are stored. Backup vaults are * identified by names that are unique to the account used to create them and the * Amazon Web Services Region where they are created. They consist of lowercase * letters, numbers, and hyphens.

*/ inline StartBackupJobRequest& WithBackupVaultName(const Aws::String& value) { SetBackupVaultName(value); return *this;} /** *

The name of a logical container where backups are stored. Backup vaults are * identified by names that are unique to the account used to create them and the * Amazon Web Services Region where they are created. They consist of lowercase * letters, numbers, and hyphens.

*/ inline StartBackupJobRequest& WithBackupVaultName(Aws::String&& value) { SetBackupVaultName(std::move(value)); return *this;} /** *

The name of a logical container where backups are stored. Backup vaults are * identified by names that are unique to the account used to create them and the * Amazon Web Services Region where they are created. They consist of lowercase * letters, numbers, and hyphens.

*/ inline StartBackupJobRequest& WithBackupVaultName(const char* value) { SetBackupVaultName(value); return *this;} /** *

An Amazon Resource Name (ARN) that uniquely identifies a resource. The format * of the ARN depends on the resource type.

*/ inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } /** *

An Amazon Resource Name (ARN) that uniquely identifies a resource. The format * of the ARN depends on the resource type.

*/ inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } /** *

An Amazon Resource Name (ARN) that uniquely identifies a resource. The format * of the ARN depends on the resource type.

*/ inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } /** *

An Amazon Resource Name (ARN) that uniquely identifies a resource. The format * of the ARN depends on the resource type.

*/ inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } /** *

An Amazon Resource Name (ARN) that uniquely identifies a resource. The format * of the ARN depends on the resource type.

*/ inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } /** *

An Amazon Resource Name (ARN) that uniquely identifies a resource. The format * of the ARN depends on the resource type.

*/ inline StartBackupJobRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} /** *

An Amazon Resource Name (ARN) that uniquely identifies a resource. The format * of the ARN depends on the resource type.

*/ inline StartBackupJobRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} /** *

An Amazon Resource Name (ARN) that uniquely identifies a resource. The format * of the ARN depends on the resource type.

*/ inline StartBackupJobRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} /** *

Specifies the IAM role ARN used to create the target recovery point; for * example, arn:aws:iam::123456789012:role/S3Access.

*/ inline const Aws::String& GetIamRoleArn() const{ return m_iamRoleArn; } /** *

Specifies the IAM role ARN used to create the target recovery point; for * example, arn:aws:iam::123456789012:role/S3Access.

*/ inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; } /** *

Specifies the IAM role ARN used to create the target recovery point; for * example, arn:aws:iam::123456789012:role/S3Access.

*/ inline void SetIamRoleArn(const Aws::String& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = value; } /** *

Specifies the IAM role ARN used to create the target recovery point; for * example, arn:aws:iam::123456789012:role/S3Access.

*/ inline void SetIamRoleArn(Aws::String&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::move(value); } /** *

Specifies the IAM role ARN used to create the target recovery point; for * example, arn:aws:iam::123456789012:role/S3Access.

*/ inline void SetIamRoleArn(const char* value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn.assign(value); } /** *

Specifies the IAM role ARN used to create the target recovery point; for * example, arn:aws:iam::123456789012:role/S3Access.

*/ inline StartBackupJobRequest& WithIamRoleArn(const Aws::String& value) { SetIamRoleArn(value); return *this;} /** *

Specifies the IAM role ARN used to create the target recovery point; for * example, arn:aws:iam::123456789012:role/S3Access.

*/ inline StartBackupJobRequest& WithIamRoleArn(Aws::String&& value) { SetIamRoleArn(std::move(value)); return *this;} /** *

Specifies the IAM role ARN used to create the target recovery point; for * example, arn:aws:iam::123456789012:role/S3Access.

*/ inline StartBackupJobRequest& WithIamRoleArn(const char* value) { SetIamRoleArn(value); return *this;} /** *

A customer-chosen string that you can use to distinguish between otherwise * identical calls to StartBackupJob. Retrying a successful request * with the same idempotency token results in a success message with no action * taken.

*/ inline const Aws::String& GetIdempotencyToken() const{ return m_idempotencyToken; } /** *

A customer-chosen string that you can use to distinguish between otherwise * identical calls to StartBackupJob. Retrying a successful request * with the same idempotency token results in a success message with no action * taken.

*/ inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; } /** *

A customer-chosen string that you can use to distinguish between otherwise * identical calls to StartBackupJob. Retrying a successful request * with the same idempotency token results in a success message with no action * taken.

*/ inline void SetIdempotencyToken(const Aws::String& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = value; } /** *

A customer-chosen string that you can use to distinguish between otherwise * identical calls to StartBackupJob. Retrying a successful request * with the same idempotency token results in a success message with no action * taken.

*/ inline void SetIdempotencyToken(Aws::String&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::move(value); } /** *

A customer-chosen string that you can use to distinguish between otherwise * identical calls to StartBackupJob. Retrying a successful request * with the same idempotency token results in a success message with no action * taken.

*/ inline void SetIdempotencyToken(const char* value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken.assign(value); } /** *

A customer-chosen string that you can use to distinguish between otherwise * identical calls to StartBackupJob. Retrying a successful request * with the same idempotency token results in a success message with no action * taken.

*/ inline StartBackupJobRequest& WithIdempotencyToken(const Aws::String& value) { SetIdempotencyToken(value); return *this;} /** *

A customer-chosen string that you can use to distinguish between otherwise * identical calls to StartBackupJob. Retrying a successful request * with the same idempotency token results in a success message with no action * taken.

*/ inline StartBackupJobRequest& WithIdempotencyToken(Aws::String&& value) { SetIdempotencyToken(std::move(value)); return *this;} /** *

A customer-chosen string that you can use to distinguish between otherwise * identical calls to StartBackupJob. Retrying a successful request * with the same idempotency token results in a success message with no action * taken.

*/ inline StartBackupJobRequest& WithIdempotencyToken(const char* value) { SetIdempotencyToken(value); return *this;} /** *

A value in minutes after a backup is scheduled before a job will be canceled * if it doesn't start successfully. This value is optional, and the default is 8 * hours. If this value is included, it must be at least 60 minutes to avoid * errors.

During the start window, the backup job status remains in * CREATED status until it has successfully begun or until the start * window time has run out. If within the start window time Backup receives an * error that allows the job to be retried, Backup will automatically retry to * begin the job at least every 10 minutes until the backup successfully begins * (the job status changes to RUNNING) or until the job status changes * to EXPIRED (which is expected to occur when the start window time * is over).

*/ inline long long GetStartWindowMinutes() const{ return m_startWindowMinutes; } /** *

A value in minutes after a backup is scheduled before a job will be canceled * if it doesn't start successfully. This value is optional, and the default is 8 * hours. If this value is included, it must be at least 60 minutes to avoid * errors.

During the start window, the backup job status remains in * CREATED status until it has successfully begun or until the start * window time has run out. If within the start window time Backup receives an * error that allows the job to be retried, Backup will automatically retry to * begin the job at least every 10 minutes until the backup successfully begins * (the job status changes to RUNNING) or until the job status changes * to EXPIRED (which is expected to occur when the start window time * is over).

*/ inline bool StartWindowMinutesHasBeenSet() const { return m_startWindowMinutesHasBeenSet; } /** *

A value in minutes after a backup is scheduled before a job will be canceled * if it doesn't start successfully. This value is optional, and the default is 8 * hours. If this value is included, it must be at least 60 minutes to avoid * errors.

During the start window, the backup job status remains in * CREATED status until it has successfully begun or until the start * window time has run out. If within the start window time Backup receives an * error that allows the job to be retried, Backup will automatically retry to * begin the job at least every 10 minutes until the backup successfully begins * (the job status changes to RUNNING) or until the job status changes * to EXPIRED (which is expected to occur when the start window time * is over).

*/ inline void SetStartWindowMinutes(long long value) { m_startWindowMinutesHasBeenSet = true; m_startWindowMinutes = value; } /** *

A value in minutes after a backup is scheduled before a job will be canceled * if it doesn't start successfully. This value is optional, and the default is 8 * hours. If this value is included, it must be at least 60 minutes to avoid * errors.

During the start window, the backup job status remains in * CREATED status until it has successfully begun or until the start * window time has run out. If within the start window time Backup receives an * error that allows the job to be retried, Backup will automatically retry to * begin the job at least every 10 minutes until the backup successfully begins * (the job status changes to RUNNING) or until the job status changes * to EXPIRED (which is expected to occur when the start window time * is over).

*/ inline StartBackupJobRequest& WithStartWindowMinutes(long long value) { SetStartWindowMinutes(value); return *this;} /** *

A value in minutes during which a successfully started backup must complete, * or else Backup will cancel the job. This value is optional. This value begins * counting down from when the backup was scheduled. It does not add additional * time for StartWindowMinutes, or if the backup started later than * scheduled.

*/ inline long long GetCompleteWindowMinutes() const{ return m_completeWindowMinutes; } /** *

A value in minutes during which a successfully started backup must complete, * or else Backup will cancel the job. This value is optional. This value begins * counting down from when the backup was scheduled. It does not add additional * time for StartWindowMinutes, or if the backup started later than * scheduled.

*/ inline bool CompleteWindowMinutesHasBeenSet() const { return m_completeWindowMinutesHasBeenSet; } /** *

A value in minutes during which a successfully started backup must complete, * or else Backup will cancel the job. This value is optional. This value begins * counting down from when the backup was scheduled. It does not add additional * time for StartWindowMinutes, or if the backup started later than * scheduled.

*/ inline void SetCompleteWindowMinutes(long long value) { m_completeWindowMinutesHasBeenSet = true; m_completeWindowMinutes = value; } /** *

A value in minutes during which a successfully started backup must complete, * or else Backup will cancel the job. This value is optional. This value begins * counting down from when the backup was scheduled. It does not add additional * time for StartWindowMinutes, or if the backup started later than * scheduled.

*/ inline StartBackupJobRequest& WithCompleteWindowMinutes(long long value) { SetCompleteWindowMinutes(value); return *this;} /** *

The lifecycle defines when a protected resource is transitioned to cold * storage and when it expires. Backup will transition and expire backups * automatically according to the lifecycle that you define.

Backups * transitioned to cold storage must be stored in cold storage for a minimum of 90 * days. Therefore, the “retention” setting must be 90 days greater than the * “transition to cold after days” setting. The “transition to cold after days” * setting cannot be changed after a backup has been transitioned to cold.

*

Resource types that are able to be transitioned to cold storage are listed in * the "Lifecycle to cold storage" section of the * Feature availability by resource table. Backup ignores this expression for * other resource types.

*/ inline const Lifecycle& GetLifecycle() const{ return m_lifecycle; } /** *

The lifecycle defines when a protected resource is transitioned to cold * storage and when it expires. Backup will transition and expire backups * automatically according to the lifecycle that you define.

Backups * transitioned to cold storage must be stored in cold storage for a minimum of 90 * days. Therefore, the “retention” setting must be 90 days greater than the * “transition to cold after days” setting. The “transition to cold after days” * setting cannot be changed after a backup has been transitioned to cold.

*

Resource types that are able to be transitioned to cold storage are listed in * the "Lifecycle to cold storage" section of the * Feature availability by resource table. Backup ignores this expression for * other resource types.

*/ inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; } /** *

The lifecycle defines when a protected resource is transitioned to cold * storage and when it expires. Backup will transition and expire backups * automatically according to the lifecycle that you define.

Backups * transitioned to cold storage must be stored in cold storage for a minimum of 90 * days. Therefore, the “retention” setting must be 90 days greater than the * “transition to cold after days” setting. The “transition to cold after days” * setting cannot be changed after a backup has been transitioned to cold.

*

Resource types that are able to be transitioned to cold storage are listed in * the "Lifecycle to cold storage" section of the * Feature availability by resource table. Backup ignores this expression for * other resource types.

*/ inline void SetLifecycle(const Lifecycle& value) { m_lifecycleHasBeenSet = true; m_lifecycle = value; } /** *

The lifecycle defines when a protected resource is transitioned to cold * storage and when it expires. Backup will transition and expire backups * automatically according to the lifecycle that you define.

Backups * transitioned to cold storage must be stored in cold storage for a minimum of 90 * days. Therefore, the “retention” setting must be 90 days greater than the * “transition to cold after days” setting. The “transition to cold after days” * setting cannot be changed after a backup has been transitioned to cold.

*

Resource types that are able to be transitioned to cold storage are listed in * the "Lifecycle to cold storage" section of the * Feature availability by resource table. Backup ignores this expression for * other resource types.

*/ inline void SetLifecycle(Lifecycle&& value) { m_lifecycleHasBeenSet = true; m_lifecycle = std::move(value); } /** *

The lifecycle defines when a protected resource is transitioned to cold * storage and when it expires. Backup will transition and expire backups * automatically according to the lifecycle that you define.

Backups * transitioned to cold storage must be stored in cold storage for a minimum of 90 * days. Therefore, the “retention” setting must be 90 days greater than the * “transition to cold after days” setting. The “transition to cold after days” * setting cannot be changed after a backup has been transitioned to cold.

*

Resource types that are able to be transitioned to cold storage are listed in * the "Lifecycle to cold storage" section of the * Feature availability by resource table. Backup ignores this expression for * other resource types.

*/ inline StartBackupJobRequest& WithLifecycle(const Lifecycle& value) { SetLifecycle(value); return *this;} /** *

The lifecycle defines when a protected resource is transitioned to cold * storage and when it expires. Backup will transition and expire backups * automatically according to the lifecycle that you define.

Backups * transitioned to cold storage must be stored in cold storage for a minimum of 90 * days. Therefore, the “retention” setting must be 90 days greater than the * “transition to cold after days” setting. The “transition to cold after days” * setting cannot be changed after a backup has been transitioned to cold.

*

Resource types that are able to be transitioned to cold storage are listed in * the "Lifecycle to cold storage" section of the * Feature availability by resource table. Backup ignores this expression for * other resource types.

*/ inline StartBackupJobRequest& WithLifecycle(Lifecycle&& value) { SetLifecycle(std::move(value)); return *this;} /** *

To help organize your resources, you can assign your own metadata to the * resources that you create. Each tag is a key-value pair.

*/ inline const Aws::Map& GetRecoveryPointTags() const{ return m_recoveryPointTags; } /** *

To help organize your resources, you can assign your own metadata to the * resources that you create. Each tag is a key-value pair.

*/ inline bool RecoveryPointTagsHasBeenSet() const { return m_recoveryPointTagsHasBeenSet; } /** *

To help organize your resources, you can assign your own metadata to the * resources that you create. Each tag is a key-value pair.

*/ inline void SetRecoveryPointTags(const Aws::Map& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags = value; } /** *

To help organize your resources, you can assign your own metadata to the * resources that you create. Each tag is a key-value pair.

*/ inline void SetRecoveryPointTags(Aws::Map&& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags = std::move(value); } /** *

To help organize your resources, you can assign your own metadata to the * resources that you create. Each tag is a key-value pair.

*/ inline StartBackupJobRequest& WithRecoveryPointTags(const Aws::Map& value) { SetRecoveryPointTags(value); return *this;} /** *

To help organize your resources, you can assign your own metadata to the * resources that you create. Each tag is a key-value pair.

*/ inline StartBackupJobRequest& WithRecoveryPointTags(Aws::Map&& value) { SetRecoveryPointTags(std::move(value)); return *this;} /** *

To help organize your resources, you can assign your own metadata to the * resources that you create. Each tag is a key-value pair.

*/ inline StartBackupJobRequest& AddRecoveryPointTags(const Aws::String& key, const Aws::String& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(key, value); return *this; } /** *

To help organize your resources, you can assign your own metadata to the * resources that you create. Each tag is a key-value pair.

*/ inline StartBackupJobRequest& AddRecoveryPointTags(Aws::String&& key, const Aws::String& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(std::move(key), value); return *this; } /** *

To help organize your resources, you can assign your own metadata to the * resources that you create. Each tag is a key-value pair.

*/ inline StartBackupJobRequest& AddRecoveryPointTags(const Aws::String& key, Aws::String&& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(key, std::move(value)); return *this; } /** *

To help organize your resources, you can assign your own metadata to the * resources that you create. Each tag is a key-value pair.

*/ inline StartBackupJobRequest& AddRecoveryPointTags(Aws::String&& key, Aws::String&& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(std::move(key), std::move(value)); return *this; } /** *

To help organize your resources, you can assign your own metadata to the * resources that you create. Each tag is a key-value pair.

*/ inline StartBackupJobRequest& AddRecoveryPointTags(const char* key, Aws::String&& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(key, std::move(value)); return *this; } /** *

To help organize your resources, you can assign your own metadata to the * resources that you create. Each tag is a key-value pair.

*/ inline StartBackupJobRequest& AddRecoveryPointTags(Aws::String&& key, const char* value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(std::move(key), value); return *this; } /** *

To help organize your resources, you can assign your own metadata to the * resources that you create. Each tag is a key-value pair.

*/ inline StartBackupJobRequest& AddRecoveryPointTags(const char* key, const char* value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(key, value); return *this; } /** *

Specifies the backup option for a selected resource. This option is only * available for Windows Volume Shadow Copy Service (VSS) backup jobs.

Valid * values: Set to "WindowsVSS":"enabled" to enable the * WindowsVSS backup option and create a Windows VSS backup. Set to * "WindowsVSS""disabled" to create a regular backup. The * WindowsVSS option is not enabled by default.

*/ inline const Aws::Map& GetBackupOptions() const{ return m_backupOptions; } /** *

Specifies the backup option for a selected resource. This option is only * available for Windows Volume Shadow Copy Service (VSS) backup jobs.

Valid * values: Set to "WindowsVSS":"enabled" to enable the * WindowsVSS backup option and create a Windows VSS backup. Set to * "WindowsVSS""disabled" to create a regular backup. The * WindowsVSS option is not enabled by default.

*/ inline bool BackupOptionsHasBeenSet() const { return m_backupOptionsHasBeenSet; } /** *

Specifies the backup option for a selected resource. This option is only * available for Windows Volume Shadow Copy Service (VSS) backup jobs.

Valid * values: Set to "WindowsVSS":"enabled" to enable the * WindowsVSS backup option and create a Windows VSS backup. Set to * "WindowsVSS""disabled" to create a regular backup. The * WindowsVSS option is not enabled by default.

*/ inline void SetBackupOptions(const Aws::Map& value) { m_backupOptionsHasBeenSet = true; m_backupOptions = value; } /** *

Specifies the backup option for a selected resource. This option is only * available for Windows Volume Shadow Copy Service (VSS) backup jobs.

Valid * values: Set to "WindowsVSS":"enabled" to enable the * WindowsVSS backup option and create a Windows VSS backup. Set to * "WindowsVSS""disabled" to create a regular backup. The * WindowsVSS option is not enabled by default.

*/ inline void SetBackupOptions(Aws::Map&& value) { m_backupOptionsHasBeenSet = true; m_backupOptions = std::move(value); } /** *

Specifies the backup option for a selected resource. This option is only * available for Windows Volume Shadow Copy Service (VSS) backup jobs.

Valid * values: Set to "WindowsVSS":"enabled" to enable the * WindowsVSS backup option and create a Windows VSS backup. Set to * "WindowsVSS""disabled" to create a regular backup. The * WindowsVSS option is not enabled by default.

*/ inline StartBackupJobRequest& WithBackupOptions(const Aws::Map& value) { SetBackupOptions(value); return *this;} /** *

Specifies the backup option for a selected resource. This option is only * available for Windows Volume Shadow Copy Service (VSS) backup jobs.

Valid * values: Set to "WindowsVSS":"enabled" to enable the * WindowsVSS backup option and create a Windows VSS backup. Set to * "WindowsVSS""disabled" to create a regular backup. The * WindowsVSS option is not enabled by default.

*/ inline StartBackupJobRequest& WithBackupOptions(Aws::Map&& value) { SetBackupOptions(std::move(value)); return *this;} /** *

Specifies the backup option for a selected resource. This option is only * available for Windows Volume Shadow Copy Service (VSS) backup jobs.

Valid * values: Set to "WindowsVSS":"enabled" to enable the * WindowsVSS backup option and create a Windows VSS backup. Set to * "WindowsVSS""disabled" to create a regular backup. The * WindowsVSS option is not enabled by default.

*/ inline StartBackupJobRequest& AddBackupOptions(const Aws::String& key, const Aws::String& value) { m_backupOptionsHasBeenSet = true; m_backupOptions.emplace(key, value); return *this; } /** *

Specifies the backup option for a selected resource. This option is only * available for Windows Volume Shadow Copy Service (VSS) backup jobs.

Valid * values: Set to "WindowsVSS":"enabled" to enable the * WindowsVSS backup option and create a Windows VSS backup. Set to * "WindowsVSS""disabled" to create a regular backup. The * WindowsVSS option is not enabled by default.

*/ inline StartBackupJobRequest& AddBackupOptions(Aws::String&& key, const Aws::String& value) { m_backupOptionsHasBeenSet = true; m_backupOptions.emplace(std::move(key), value); return *this; } /** *

Specifies the backup option for a selected resource. This option is only * available for Windows Volume Shadow Copy Service (VSS) backup jobs.

Valid * values: Set to "WindowsVSS":"enabled" to enable the * WindowsVSS backup option and create a Windows VSS backup. Set to * "WindowsVSS""disabled" to create a regular backup. The * WindowsVSS option is not enabled by default.

*/ inline StartBackupJobRequest& AddBackupOptions(const Aws::String& key, Aws::String&& value) { m_backupOptionsHasBeenSet = true; m_backupOptions.emplace(key, std::move(value)); return *this; } /** *

Specifies the backup option for a selected resource. This option is only * available for Windows Volume Shadow Copy Service (VSS) backup jobs.

Valid * values: Set to "WindowsVSS":"enabled" to enable the * WindowsVSS backup option and create a Windows VSS backup. Set to * "WindowsVSS""disabled" to create a regular backup. The * WindowsVSS option is not enabled by default.

*/ inline StartBackupJobRequest& AddBackupOptions(Aws::String&& key, Aws::String&& value) { m_backupOptionsHasBeenSet = true; m_backupOptions.emplace(std::move(key), std::move(value)); return *this; } /** *

Specifies the backup option for a selected resource. This option is only * available for Windows Volume Shadow Copy Service (VSS) backup jobs.

Valid * values: Set to "WindowsVSS":"enabled" to enable the * WindowsVSS backup option and create a Windows VSS backup. Set to * "WindowsVSS""disabled" to create a regular backup. The * WindowsVSS option is not enabled by default.

*/ inline StartBackupJobRequest& AddBackupOptions(const char* key, Aws::String&& value) { m_backupOptionsHasBeenSet = true; m_backupOptions.emplace(key, std::move(value)); return *this; } /** *

Specifies the backup option for a selected resource. This option is only * available for Windows Volume Shadow Copy Service (VSS) backup jobs.

Valid * values: Set to "WindowsVSS":"enabled" to enable the * WindowsVSS backup option and create a Windows VSS backup. Set to * "WindowsVSS""disabled" to create a regular backup. The * WindowsVSS option is not enabled by default.

*/ inline StartBackupJobRequest& AddBackupOptions(Aws::String&& key, const char* value) { m_backupOptionsHasBeenSet = true; m_backupOptions.emplace(std::move(key), value); return *this; } /** *

Specifies the backup option for a selected resource. This option is only * available for Windows Volume Shadow Copy Service (VSS) backup jobs.

Valid * values: Set to "WindowsVSS":"enabled" to enable the * WindowsVSS backup option and create a Windows VSS backup. Set to * "WindowsVSS""disabled" to create a regular backup. The * WindowsVSS option is not enabled by default.

*/ inline StartBackupJobRequest& AddBackupOptions(const char* key, const char* value) { m_backupOptionsHasBeenSet = true; m_backupOptions.emplace(key, value); return *this; } private: Aws::String m_backupVaultName; bool m_backupVaultNameHasBeenSet = false; Aws::String m_resourceArn; bool m_resourceArnHasBeenSet = false; Aws::String m_iamRoleArn; bool m_iamRoleArnHasBeenSet = false; Aws::String m_idempotencyToken; bool m_idempotencyTokenHasBeenSet = false; long long m_startWindowMinutes; bool m_startWindowMinutesHasBeenSet = false; long long m_completeWindowMinutes; bool m_completeWindowMinutesHasBeenSet = false; Lifecycle m_lifecycle; bool m_lifecycleHasBeenSet = false; Aws::Map m_recoveryPointTags; bool m_recoveryPointTagsHasBeenSet = false; Aws::Map m_backupOptions; bool m_backupOptionsHasBeenSet = false; }; } // namespace Model } // namespace Backup } // namespace Aws