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

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

/*
 * Copyright 2017-2022 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;

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

    /**
     * 

* An ARN that uniquely identifies a backup vault; for example, * arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. *

*/ private String backupVaultArn; /** *

* An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example, * arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. *

*/ private String recoveryPointArn; /** *

* The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup * transitions and expires 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. *

*/ private Lifecycle lifecycle; /** *

* A CalculatedLifecycle object containing DeleteAt and MoveToColdStorageAt * timestamps. *

*/ private CalculatedLifecycle calculatedLifecycle; /** *

* An ARN that uniquely identifies a backup vault; for example, * arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. *

* * @param backupVaultArn * An ARN that uniquely identifies a backup vault; for example, * arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. */ public void setBackupVaultArn(String backupVaultArn) { this.backupVaultArn = backupVaultArn; } /** *

* An ARN that uniquely identifies a backup vault; for example, * arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. *

* * @return An ARN that uniquely identifies a backup vault; for example, * arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. */ public String getBackupVaultArn() { return this.backupVaultArn; } /** *

* An ARN that uniquely identifies a backup vault; for example, * arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. *

* * @param backupVaultArn * An ARN that uniquely identifies a backup vault; for example, * arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateRecoveryPointLifecycleResult withBackupVaultArn(String backupVaultArn) { setBackupVaultArn(backupVaultArn); return this; } /** *

* An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example, * arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. *

* * @param recoveryPointArn * An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example, * arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. */ public void setRecoveryPointArn(String recoveryPointArn) { this.recoveryPointArn = recoveryPointArn; } /** *

* An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example, * arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. *

* * @return An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example, * arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. */ public String getRecoveryPointArn() { return this.recoveryPointArn; } /** *

* An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example, * arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. *

* * @param recoveryPointArn * An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example, * arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateRecoveryPointLifecycleResult withRecoveryPointArn(String recoveryPointArn) { setRecoveryPointArn(recoveryPointArn); return this; } /** *

* The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup * transitions and expires 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. *

* * @param lifecycle * The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. * Backup transitions and expires 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. */ 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 * transitions and expires 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. *

* * @return The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. * Backup transitions and expires 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. */ public Lifecycle getLifecycle() { return this.lifecycle; } /** *

* The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup * transitions and expires 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. *

* * @param lifecycle * The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. * Backup transitions and expires 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. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateRecoveryPointLifecycleResult withLifecycle(Lifecycle lifecycle) { setLifecycle(lifecycle); return this; } /** *

* A CalculatedLifecycle object containing DeleteAt and MoveToColdStorageAt * timestamps. *

* * @param calculatedLifecycle * A CalculatedLifecycle object containing DeleteAt and * MoveToColdStorageAt timestamps. */ public void setCalculatedLifecycle(CalculatedLifecycle calculatedLifecycle) { this.calculatedLifecycle = calculatedLifecycle; } /** *

* A CalculatedLifecycle object containing DeleteAt and MoveToColdStorageAt * timestamps. *

* * @return A CalculatedLifecycle object containing DeleteAt and * MoveToColdStorageAt timestamps. */ public CalculatedLifecycle getCalculatedLifecycle() { return this.calculatedLifecycle; } /** *

* A CalculatedLifecycle object containing DeleteAt and MoveToColdStorageAt * timestamps. *

* * @param calculatedLifecycle * A CalculatedLifecycle object containing DeleteAt and * MoveToColdStorageAt timestamps. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateRecoveryPointLifecycleResult withCalculatedLifecycle(CalculatedLifecycle calculatedLifecycle) { setCalculatedLifecycle(calculatedLifecycle); 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 (getBackupVaultArn() != null) sb.append("BackupVaultArn: ").append(getBackupVaultArn()).append(","); if (getRecoveryPointArn() != null) sb.append("RecoveryPointArn: ").append(getRecoveryPointArn()).append(","); if (getLifecycle() != null) sb.append("Lifecycle: ").append(getLifecycle()).append(","); if (getCalculatedLifecycle() != null) sb.append("CalculatedLifecycle: ").append(getCalculatedLifecycle()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateRecoveryPointLifecycleResult == false) return false; UpdateRecoveryPointLifecycleResult other = (UpdateRecoveryPointLifecycleResult) obj; if (other.getBackupVaultArn() == null ^ this.getBackupVaultArn() == null) return false; if (other.getBackupVaultArn() != null && other.getBackupVaultArn().equals(this.getBackupVaultArn()) == false) return false; if (other.getRecoveryPointArn() == null ^ this.getRecoveryPointArn() == null) return false; if (other.getRecoveryPointArn() != null && other.getRecoveryPointArn().equals(this.getRecoveryPointArn()) == 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.getCalculatedLifecycle() == null ^ this.getCalculatedLifecycle() == null) return false; if (other.getCalculatedLifecycle() != null && other.getCalculatedLifecycle().equals(this.getCalculatedLifecycle()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBackupVaultArn() == null) ? 0 : getBackupVaultArn().hashCode()); hashCode = prime * hashCode + ((getRecoveryPointArn() == null) ? 0 : getRecoveryPointArn().hashCode()); hashCode = prime * hashCode + ((getLifecycle() == null) ? 0 : getLifecycle().hashCode()); hashCode = prime * hashCode + ((getCalculatedLifecycle() == null) ? 0 : getCalculatedLifecycle().hashCode()); return hashCode; } @Override public UpdateRecoveryPointLifecycleResult clone() { try { return (UpdateRecoveryPointLifecycleResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy