All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.backup.model.StartBackupJobRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Backup module holds the client classes that are used for communicating with AWS Backup Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.backup.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class StartBackupJobRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* 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. *

*/ private String backupVaultName; /** *

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

*/ private String resourceArn; /** *

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

*/ private String iamRoleArn; /** *

* 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. *

*/ private String idempotencyToken; /** *

* 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. *

*

* This parameter has a maximum value of 100 years (52,560,000 minutes). *

*

* 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). *

*/ private Long startWindowMinutes; /** *

* 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. *

*

* Like StartWindowMinutes, this parameter has a maximum value of 100 years (52,560,000 minutes). *

*/ private Long completeWindowMinutes; /** *

* 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. *

*

* This parameter has a maximum value of 100 years (36,500 days). *

*/ private Lifecycle lifecycle; /** *

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

*/ private java.util.Map recoveryPointTags; /** *

* 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. *

*/ private java.util.Map backupOptions; /** *

* 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. *

* * @param 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. */ public void setBackupVaultName(String backupVaultName) { this.backupVaultName = 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. *

* * @return 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. */ public String getBackupVaultName() { return this.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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public StartBackupJobRequest withBackupVaultName(String backupVaultName) { setBackupVaultName(backupVaultName); return this; } /** *

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

* * @param resourceArn * An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the * resource type. */ public void setResourceArn(String resourceArn) { this.resourceArn = resourceArn; } /** *

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

* * @return An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the * resource type. */ public String getResourceArn() { return this.resourceArn; } /** *

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

* * @param resourceArn * An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the * resource type. * @return Returns a reference to this object so that method calls can be chained together. */ public StartBackupJobRequest withResourceArn(String resourceArn) { setResourceArn(resourceArn); return this; } /** *

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

* * @param iamRoleArn * Specifies the IAM role ARN used to create the target recovery point; for example, * arn:aws:iam::123456789012:role/S3Access. */ public void setIamRoleArn(String iamRoleArn) { this.iamRoleArn = iamRoleArn; } /** *

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

* * @return Specifies the IAM role ARN used to create the target recovery point; for example, * arn:aws:iam::123456789012:role/S3Access. */ public String getIamRoleArn() { return this.iamRoleArn; } /** *

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

* * @param iamRoleArn * Specifies the IAM role ARN used to create the target recovery point; for example, * arn:aws:iam::123456789012:role/S3Access. * @return Returns a reference to this object so that method calls can be chained together. */ public StartBackupJobRequest withIamRoleArn(String iamRoleArn) { setIamRoleArn(iamRoleArn); 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. *

* * @param 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. */ public void setIdempotencyToken(String idempotencyToken) { this.idempotencyToken = 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. *

* * @return 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. */ public String getIdempotencyToken() { return this.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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public StartBackupJobRequest withIdempotencyToken(String idempotencyToken) { setIdempotencyToken(idempotencyToken); 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. *

*

* This parameter has a maximum value of 100 years (52,560,000 minutes). *

*

* 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). *

* * @param 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.

*

* This parameter has a maximum value of 100 years (52,560,000 minutes). *

*

* 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). */ public void setStartWindowMinutes(Long startWindowMinutes) { this.startWindowMinutes = 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. *

*

* This parameter has a maximum value of 100 years (52,560,000 minutes). *

*

* 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). *

* * @return 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.

*

* This parameter has a maximum value of 100 years (52,560,000 minutes). *

*

* 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). */ public Long getStartWindowMinutes() { return this.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. *

*

* This parameter has a maximum value of 100 years (52,560,000 minutes). *

*

* 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). *

* * @param 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.

*

* This parameter has a maximum value of 100 years (52,560,000 minutes). *

*

* 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). * @return Returns a reference to this object so that method calls can be chained together. */ public StartBackupJobRequest withStartWindowMinutes(Long startWindowMinutes) { setStartWindowMinutes(startWindowMinutes); 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. *

*

* Like StartWindowMinutes, this parameter has a maximum value of 100 years (52,560,000 minutes). *

* * @param 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.

*

* Like StartWindowMinutes, this parameter has a maximum value of 100 years (52,560,000 * minutes). */ public void setCompleteWindowMinutes(Long completeWindowMinutes) { this.completeWindowMinutes = 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. *

*

* Like StartWindowMinutes, this parameter has a maximum value of 100 years (52,560,000 minutes). *

* * @return 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.

*

* Like StartWindowMinutes, this parameter has a maximum value of 100 years (52,560,000 * minutes). */ public Long getCompleteWindowMinutes() { return this.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. *

*

* Like StartWindowMinutes, this parameter has a maximum value of 100 years (52,560,000 minutes). *

* * @param 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.

*

* Like StartWindowMinutes, this parameter has a maximum value of 100 years (52,560,000 * minutes). * @return Returns a reference to this object so that method calls can be chained together. */ public StartBackupJobRequest withCompleteWindowMinutes(Long completeWindowMinutes) { setCompleteWindowMinutes(completeWindowMinutes); 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. *

*

* This parameter has a maximum value of 100 years (36,500 days). *

* * @param 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. *

*

* This parameter has a maximum value of 100 years (36,500 days). */ public void setLifecycle(Lifecycle lifecycle) { this.lifecycle = 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. *

*

* This parameter has a maximum value of 100 years (36,500 days). *

* * @return 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. *

*

* This parameter has a maximum value of 100 years (36,500 days). */ public Lifecycle getLifecycle() { return this.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. *

*

* This parameter has a maximum value of 100 years (36,500 days). *

* * @param 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. *

*

* This parameter has a maximum value of 100 years (36,500 days). * @return Returns a reference to this object so that method calls can be chained together. */ public StartBackupJobRequest withLifecycle(Lifecycle lifecycle) { setLifecycle(lifecycle); 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. *

* * @return To help organize your resources, you can assign your own metadata to the resources that you create. Each * tag is a key-value pair. */ public java.util.Map getRecoveryPointTags() { return 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. *

* * @param 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. */ public void setRecoveryPointTags(java.util.Map recoveryPointTags) { this.recoveryPointTags = 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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public StartBackupJobRequest withRecoveryPointTags(java.util.Map recoveryPointTags) { setRecoveryPointTags(recoveryPointTags); return this; } /** * Add a single RecoveryPointTags entry * * @see StartBackupJobRequest#withRecoveryPointTags * @returns a reference to this object so that method calls can be chained together. */ public StartBackupJobRequest addRecoveryPointTagsEntry(String key, String value) { if (null == this.recoveryPointTags) { this.recoveryPointTags = new java.util.HashMap(); } if (this.recoveryPointTags.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.recoveryPointTags.put(key, value); return this; } /** * Removes all the entries added into RecoveryPointTags. * * @return Returns a reference to this object so that method calls can be chained together. */ public StartBackupJobRequest clearRecoveryPointTagsEntries() { this.recoveryPointTags = null; 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. *

* * @return 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. */ public java.util.Map getBackupOptions() { return 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. *

* * @param 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. */ public void setBackupOptions(java.util.Map backupOptions) { this.backupOptions = 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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public StartBackupJobRequest withBackupOptions(java.util.Map backupOptions) { setBackupOptions(backupOptions); return this; } /** * Add a single BackupOptions entry * * @see StartBackupJobRequest#withBackupOptions * @returns a reference to this object so that method calls can be chained together. */ public StartBackupJobRequest addBackupOptionsEntry(String key, String value) { if (null == this.backupOptions) { this.backupOptions = new java.util.HashMap(); } if (this.backupOptions.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.backupOptions.put(key, value); return this; } /** * Removes all the entries added into BackupOptions. * * @return Returns a reference to this object so that method calls can be chained together. */ public StartBackupJobRequest clearBackupOptionsEntries() { this.backupOptions = null; return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getBackupVaultName() != null) sb.append("BackupVaultName: ").append(getBackupVaultName()).append(","); if (getResourceArn() != null) sb.append("ResourceArn: ").append(getResourceArn()).append(","); if (getIamRoleArn() != null) sb.append("IamRoleArn: ").append(getIamRoleArn()).append(","); if (getIdempotencyToken() != null) sb.append("IdempotencyToken: ").append(getIdempotencyToken()).append(","); if (getStartWindowMinutes() != null) sb.append("StartWindowMinutes: ").append(getStartWindowMinutes()).append(","); if (getCompleteWindowMinutes() != null) sb.append("CompleteWindowMinutes: ").append(getCompleteWindowMinutes()).append(","); if (getLifecycle() != null) sb.append("Lifecycle: ").append(getLifecycle()).append(","); if (getRecoveryPointTags() != null) sb.append("RecoveryPointTags: ").append("***Sensitive Data Redacted***").append(","); if (getBackupOptions() != null) sb.append("BackupOptions: ").append(getBackupOptions()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StartBackupJobRequest == false) return false; StartBackupJobRequest other = (StartBackupJobRequest) obj; if (other.getBackupVaultName() == null ^ this.getBackupVaultName() == null) return false; if (other.getBackupVaultName() != null && other.getBackupVaultName().equals(this.getBackupVaultName()) == false) return false; if (other.getResourceArn() == null ^ this.getResourceArn() == null) return false; if (other.getResourceArn() != null && other.getResourceArn().equals(this.getResourceArn()) == false) return false; if (other.getIamRoleArn() == null ^ this.getIamRoleArn() == null) return false; if (other.getIamRoleArn() != null && other.getIamRoleArn().equals(this.getIamRoleArn()) == false) return false; if (other.getIdempotencyToken() == null ^ this.getIdempotencyToken() == null) return false; if (other.getIdempotencyToken() != null && other.getIdempotencyToken().equals(this.getIdempotencyToken()) == false) return false; if (other.getStartWindowMinutes() == null ^ this.getStartWindowMinutes() == null) return false; if (other.getStartWindowMinutes() != null && other.getStartWindowMinutes().equals(this.getStartWindowMinutes()) == false) return false; if (other.getCompleteWindowMinutes() == null ^ this.getCompleteWindowMinutes() == null) return false; if (other.getCompleteWindowMinutes() != null && other.getCompleteWindowMinutes().equals(this.getCompleteWindowMinutes()) == false) return false; if (other.getLifecycle() == null ^ this.getLifecycle() == null) return false; if (other.getLifecycle() != null && other.getLifecycle().equals(this.getLifecycle()) == false) return false; if (other.getRecoveryPointTags() == null ^ this.getRecoveryPointTags() == null) return false; if (other.getRecoveryPointTags() != null && other.getRecoveryPointTags().equals(this.getRecoveryPointTags()) == false) return false; if (other.getBackupOptions() == null ^ this.getBackupOptions() == null) return false; if (other.getBackupOptions() != null && other.getBackupOptions().equals(this.getBackupOptions()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBackupVaultName() == null) ? 0 : getBackupVaultName().hashCode()); hashCode = prime * hashCode + ((getResourceArn() == null) ? 0 : getResourceArn().hashCode()); hashCode = prime * hashCode + ((getIamRoleArn() == null) ? 0 : getIamRoleArn().hashCode()); hashCode = prime * hashCode + ((getIdempotencyToken() == null) ? 0 : getIdempotencyToken().hashCode()); hashCode = prime * hashCode + ((getStartWindowMinutes() == null) ? 0 : getStartWindowMinutes().hashCode()); hashCode = prime * hashCode + ((getCompleteWindowMinutes() == null) ? 0 : getCompleteWindowMinutes().hashCode()); hashCode = prime * hashCode + ((getLifecycle() == null) ? 0 : getLifecycle().hashCode()); hashCode = prime * hashCode + ((getRecoveryPointTags() == null) ? 0 : getRecoveryPointTags().hashCode()); hashCode = prime * hashCode + ((getBackupOptions() == null) ? 0 : getBackupOptions().hashCode()); return hashCode; } @Override public StartBackupJobRequest clone() { return (StartBackupJobRequest) super.clone(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy