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

software.amazon.awssdk.services.backup.model.DescribeRecoveryPointResponse Maven / Gradle / Ivy

/*
 * Copyright 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 software.amazon.awssdk.services.backup.model;

import java.beans.Transient;
import java.time.Instant;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Function;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.core.SdkField;
import software.amazon.awssdk.core.SdkPojo;
import software.amazon.awssdk.core.protocol.MarshallLocation;
import software.amazon.awssdk.core.protocol.MarshallingType;
import software.amazon.awssdk.core.traits.LocationTrait;
import software.amazon.awssdk.utils.ToString;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;

/**
 */
@Generated("software.amazon.awssdk:codegen")
public final class DescribeRecoveryPointResponse extends BackupResponse implements
        ToCopyableBuilder {
    private static final SdkField RECOVERY_POINT_ARN_FIELD = SdkField. builder(MarshallingType.STRING)
            .memberName("RecoveryPointArn").getter(getter(DescribeRecoveryPointResponse::recoveryPointArn))
            .setter(setter(Builder::recoveryPointArn))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("RecoveryPointArn").build()).build();

    private static final SdkField BACKUP_VAULT_NAME_FIELD = SdkField. builder(MarshallingType.STRING)
            .memberName("BackupVaultName").getter(getter(DescribeRecoveryPointResponse::backupVaultName))
            .setter(setter(Builder::backupVaultName))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("BackupVaultName").build()).build();

    private static final SdkField BACKUP_VAULT_ARN_FIELD = SdkField. builder(MarshallingType.STRING)
            .memberName("BackupVaultArn").getter(getter(DescribeRecoveryPointResponse::backupVaultArn))
            .setter(setter(Builder::backupVaultArn))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("BackupVaultArn").build()).build();

    private static final SdkField SOURCE_BACKUP_VAULT_ARN_FIELD = SdkField. builder(MarshallingType.STRING)
            .memberName("SourceBackupVaultArn").getter(getter(DescribeRecoveryPointResponse::sourceBackupVaultArn))
            .setter(setter(Builder::sourceBackupVaultArn))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SourceBackupVaultArn").build())
            .build();

    private static final SdkField RESOURCE_ARN_FIELD = SdkField. builder(MarshallingType.STRING)
            .memberName("ResourceArn").getter(getter(DescribeRecoveryPointResponse::resourceArn))
            .setter(setter(Builder::resourceArn))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ResourceArn").build()).build();

    private static final SdkField RESOURCE_TYPE_FIELD = SdkField. builder(MarshallingType.STRING)
            .memberName("ResourceType").getter(getter(DescribeRecoveryPointResponse::resourceType))
            .setter(setter(Builder::resourceType))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ResourceType").build()).build();

    private static final SdkField CREATED_BY_FIELD = SdkField
            . builder(MarshallingType.SDK_POJO).memberName("CreatedBy")
            .getter(getter(DescribeRecoveryPointResponse::createdBy)).setter(setter(Builder::createdBy))
            .constructor(RecoveryPointCreator::builder)
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CreatedBy").build()).build();

    private static final SdkField IAM_ROLE_ARN_FIELD = SdkField. builder(MarshallingType.STRING)
            .memberName("IamRoleArn").getter(getter(DescribeRecoveryPointResponse::iamRoleArn))
            .setter(setter(Builder::iamRoleArn))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("IamRoleArn").build()).build();

    private static final SdkField STATUS_FIELD = SdkField. builder(MarshallingType.STRING).memberName("Status")
            .getter(getter(DescribeRecoveryPointResponse::statusAsString)).setter(setter(Builder::status))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Status").build()).build();

    private static final SdkField STATUS_MESSAGE_FIELD = SdkField. builder(MarshallingType.STRING)
            .memberName("StatusMessage").getter(getter(DescribeRecoveryPointResponse::statusMessage))
            .setter(setter(Builder::statusMessage))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("StatusMessage").build()).build();

    private static final SdkField CREATION_DATE_FIELD = SdkField. builder(MarshallingType.INSTANT)
            .memberName("CreationDate").getter(getter(DescribeRecoveryPointResponse::creationDate))
            .setter(setter(Builder::creationDate))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CreationDate").build()).build();

    private static final SdkField COMPLETION_DATE_FIELD = SdkField. builder(MarshallingType.INSTANT)
            .memberName("CompletionDate").getter(getter(DescribeRecoveryPointResponse::completionDate))
            .setter(setter(Builder::completionDate))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CompletionDate").build()).build();

    private static final SdkField BACKUP_SIZE_IN_BYTES_FIELD = SdkField. builder(MarshallingType.LONG)
            .memberName("BackupSizeInBytes").getter(getter(DescribeRecoveryPointResponse::backupSizeInBytes))
            .setter(setter(Builder::backupSizeInBytes))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("BackupSizeInBytes").build()).build();

    private static final SdkField CALCULATED_LIFECYCLE_FIELD = SdkField
            . builder(MarshallingType.SDK_POJO).memberName("CalculatedLifecycle")
            .getter(getter(DescribeRecoveryPointResponse::calculatedLifecycle)).setter(setter(Builder::calculatedLifecycle))
            .constructor(CalculatedLifecycle::builder)
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CalculatedLifecycle").build())
            .build();

    private static final SdkField LIFECYCLE_FIELD = SdkField. builder(MarshallingType.SDK_POJO)
            .memberName("Lifecycle").getter(getter(DescribeRecoveryPointResponse::lifecycle)).setter(setter(Builder::lifecycle))
            .constructor(Lifecycle::builder)
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Lifecycle").build()).build();

    private static final SdkField ENCRYPTION_KEY_ARN_FIELD = SdkField. builder(MarshallingType.STRING)
            .memberName("EncryptionKeyArn").getter(getter(DescribeRecoveryPointResponse::encryptionKeyArn))
            .setter(setter(Builder::encryptionKeyArn))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EncryptionKeyArn").build()).build();

    private static final SdkField IS_ENCRYPTED_FIELD = SdkField. builder(MarshallingType.BOOLEAN)
            .memberName("IsEncrypted").getter(getter(DescribeRecoveryPointResponse::isEncrypted))
            .setter(setter(Builder::isEncrypted))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("IsEncrypted").build()).build();

    private static final SdkField STORAGE_CLASS_FIELD = SdkField. builder(MarshallingType.STRING)
            .memberName("StorageClass").getter(getter(DescribeRecoveryPointResponse::storageClassAsString))
            .setter(setter(Builder::storageClass))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("StorageClass").build()).build();

    private static final SdkField LAST_RESTORE_TIME_FIELD = SdkField. builder(MarshallingType.INSTANT)
            .memberName("LastRestoreTime").getter(getter(DescribeRecoveryPointResponse::lastRestoreTime))
            .setter(setter(Builder::lastRestoreTime))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("LastRestoreTime").build()).build();

    private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(RECOVERY_POINT_ARN_FIELD,
            BACKUP_VAULT_NAME_FIELD, BACKUP_VAULT_ARN_FIELD, SOURCE_BACKUP_VAULT_ARN_FIELD, RESOURCE_ARN_FIELD,
            RESOURCE_TYPE_FIELD, CREATED_BY_FIELD, IAM_ROLE_ARN_FIELD, STATUS_FIELD, STATUS_MESSAGE_FIELD, CREATION_DATE_FIELD,
            COMPLETION_DATE_FIELD, BACKUP_SIZE_IN_BYTES_FIELD, CALCULATED_LIFECYCLE_FIELD, LIFECYCLE_FIELD,
            ENCRYPTION_KEY_ARN_FIELD, IS_ENCRYPTED_FIELD, STORAGE_CLASS_FIELD, LAST_RESTORE_TIME_FIELD));

    private final String recoveryPointArn;

    private final String backupVaultName;

    private final String backupVaultArn;

    private final String sourceBackupVaultArn;

    private final String resourceArn;

    private final String resourceType;

    private final RecoveryPointCreator createdBy;

    private final String iamRoleArn;

    private final String status;

    private final String statusMessage;

    private final Instant creationDate;

    private final Instant completionDate;

    private final Long backupSizeInBytes;

    private final CalculatedLifecycle calculatedLifecycle;

    private final Lifecycle lifecycle;

    private final String encryptionKeyArn;

    private final Boolean isEncrypted;

    private final String storageClass;

    private final Instant lastRestoreTime;

    private DescribeRecoveryPointResponse(BuilderImpl builder) {
        super(builder);
        this.recoveryPointArn = builder.recoveryPointArn;
        this.backupVaultName = builder.backupVaultName;
        this.backupVaultArn = builder.backupVaultArn;
        this.sourceBackupVaultArn = builder.sourceBackupVaultArn;
        this.resourceArn = builder.resourceArn;
        this.resourceType = builder.resourceType;
        this.createdBy = builder.createdBy;
        this.iamRoleArn = builder.iamRoleArn;
        this.status = builder.status;
        this.statusMessage = builder.statusMessage;
        this.creationDate = builder.creationDate;
        this.completionDate = builder.completionDate;
        this.backupSizeInBytes = builder.backupSizeInBytes;
        this.calculatedLifecycle = builder.calculatedLifecycle;
        this.lifecycle = builder.lifecycle;
        this.encryptionKeyArn = builder.encryptionKeyArn;
        this.isEncrypted = builder.isEncrypted;
        this.storageClass = builder.storageClass;
        this.lastRestoreTime = builder.lastRestoreTime;
    }

    /**
     * 

* An 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 ARN that uniquely identifies a recovery point; for example, * arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. */ public final String recoveryPointArn() { return recoveryPointArn; } /** *

* 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 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 Region where they are created. They consist of * lowercase letters, numbers, and hyphens. */ public final String backupVaultName() { return backupVaultName; } /** *

* 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 final String backupVaultArn() { return backupVaultArn; } /** *

* An Amazon Resource Name (ARN) that uniquely identifies the source vault where the resource was originally backed * up in; for example, arn:aws:backup:us-east-1:123456789012:vault:BackupVault. If the recovery is * restored to the same Amazon Web Services account or Region, this value will be null. *

* * @return An Amazon Resource Name (ARN) that uniquely identifies the source vault where the resource was originally * backed up in; for example, arn:aws:backup:us-east-1:123456789012:vault:BackupVault. If the * recovery is restored to the same Amazon Web Services account or Region, this value will be * null. */ public final String sourceBackupVaultArn() { return sourceBackupVaultArn; } /** *

* An ARN that uniquely identifies a saved resource. The format of the ARN depends on the resource type. *

* * @return An ARN that uniquely identifies a saved resource. The format of the ARN depends on the resource type. */ public final String resourceArn() { return resourceArn; } /** *

* The type of Amazon Web Services resource to save as a recovery point; for example, an Amazon Elastic Block Store * (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database. *

* * @return The type of Amazon Web Services resource to save as a recovery point; for example, an Amazon Elastic * Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database. */ public final String resourceType() { return resourceType; } /** *

* Contains identifying information about the creation of a recovery point, including the BackupPlanArn, BackupPlanId, BackupPlanVersion, and BackupRuleId of the backup plan * used to create it. *

* * @return Contains identifying information about the creation of a recovery point, including the * BackupPlanArn, BackupPlanId, BackupPlanVersion, and * BackupRuleId of the backup plan used to create it. */ public final RecoveryPointCreator createdBy() { return createdBy; } /** *

* 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 final String iamRoleArn() { return iamRoleArn; } /** *

* A status code specifying the state of the recovery point. *

*

* PARTIAL status indicates Backup could not create the recovery point before the backup window closed. * To increase your backup plan window using the API, see UpdateBackupPlan. You * can also increase your backup plan window using the Console by choosing and editing your backup plan. *

*

* EXPIRED status indicates that the recovery point has exceeded its retention period, but Backup lacks * permission or is otherwise unable to delete it. To manually delete these recovery points, see Step 3: * Delete the recovery points in the Clean up resources section of Getting started. *

*

* If the service returns an enum value that is not available in the current SDK version, {@link #status} will * return {@link RecoveryPointStatus#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available * from {@link #statusAsString}. *

* * @return A status code specifying the state of the recovery point.

*

* PARTIAL status indicates Backup could not create the recovery point before the backup window * closed. To increase your backup plan window using the API, see UpdateBackupPlan. You can also increase your backup plan window using the Console by choosing and * editing your backup plan. *

*

* EXPIRED status indicates that the recovery point has exceeded its retention period, but * Backup lacks permission or is otherwise unable to delete it. To manually delete these recovery points, * see * Step 3: Delete the recovery points in the Clean up resources section of Getting * started. * @see RecoveryPointStatus */ public final RecoveryPointStatus status() { return RecoveryPointStatus.fromValue(status); } /** *

* A status code specifying the state of the recovery point. *

*

* PARTIAL status indicates Backup could not create the recovery point before the backup window closed. * To increase your backup plan window using the API, see UpdateBackupPlan. You * can also increase your backup plan window using the Console by choosing and editing your backup plan. *

*

* EXPIRED status indicates that the recovery point has exceeded its retention period, but Backup lacks * permission or is otherwise unable to delete it. To manually delete these recovery points, see Step 3: * Delete the recovery points in the Clean up resources section of Getting started. *

*

* If the service returns an enum value that is not available in the current SDK version, {@link #status} will * return {@link RecoveryPointStatus#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available * from {@link #statusAsString}. *

* * @return A status code specifying the state of the recovery point.

*

* PARTIAL status indicates Backup could not create the recovery point before the backup window * closed. To increase your backup plan window using the API, see UpdateBackupPlan. You can also increase your backup plan window using the Console by choosing and * editing your backup plan. *

*

* EXPIRED status indicates that the recovery point has exceeded its retention period, but * Backup lacks permission or is otherwise unable to delete it. To manually delete these recovery points, * see * Step 3: Delete the recovery points in the Clean up resources section of Getting * started. * @see RecoveryPointStatus */ public final String statusAsString() { return status; } /** *

* A status message explaining the reason for the recovery point deletion failure. *

* * @return A status message explaining the reason for the recovery point deletion failure. */ public final String statusMessage() { return statusMessage; } /** *

* The date and time that a recovery point is created, in Unix format and Coordinated Universal Time (UTC). The * value of CreationDate is accurate to milliseconds. For example, the value 1516925490.087 represents * Friday, January 26, 2018 12:11:30.087 AM. *

* * @return The date and time that a recovery point is created, in Unix format and Coordinated Universal Time (UTC). * The value of CreationDate is accurate to milliseconds. For example, the value 1516925490.087 * represents Friday, January 26, 2018 12:11:30.087 AM. */ public final Instant creationDate() { return creationDate; } /** *

* The date and time that a job to create a recovery point is completed, in Unix format and Coordinated Universal * Time (UTC). The value of CompletionDate is accurate to milliseconds. For example, the value * 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. *

* * @return The date and time that a job to create a recovery point is completed, in Unix format and Coordinated * Universal Time (UTC). The value of CompletionDate is accurate to milliseconds. For example, * the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. */ public final Instant completionDate() { return completionDate; } /** *

* The size, in bytes, of a backup. *

* * @return The size, in bytes, of a backup. */ public final Long backupSizeInBytes() { return backupSizeInBytes; } /** *

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

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

* 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 that are transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, * the “expire after days” 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. *

*

* Only Amazon EFS file system backups can be transitioned to cold storage. *

* * @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 that are transitioned to cold storage must be stored in cold storage for a minimum of 90 days. * Therefore, the “expire after days” 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. *

*

* Only Amazon EFS file system backups can be transitioned to cold storage. */ public final Lifecycle lifecycle() { return lifecycle; } /** *

* The server-side encryption key used to protect your backups; for example, * arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab. *

* * @return The server-side encryption key used to protect your backups; for example, * arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab. */ public final String encryptionKeyArn() { return encryptionKeyArn; } /** *

* A Boolean value that is returned as TRUE if the specified recovery point is encrypted, or * FALSE if the recovery point is not encrypted. *

* * @return A Boolean value that is returned as TRUE if the specified recovery point is encrypted, or * FALSE if the recovery point is not encrypted. */ public final Boolean isEncrypted() { return isEncrypted; } /** *

* Specifies the storage class of the recovery point. Valid values are WARM or COLD. *

*

* If the service returns an enum value that is not available in the current SDK version, {@link #storageClass} will * return {@link StorageClass#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #storageClassAsString}. *

* * @return Specifies the storage class of the recovery point. Valid values are WARM or * COLD. * @see StorageClass */ public final StorageClass storageClass() { return StorageClass.fromValue(storageClass); } /** *

* Specifies the storage class of the recovery point. Valid values are WARM or COLD. *

*

* If the service returns an enum value that is not available in the current SDK version, {@link #storageClass} will * return {@link StorageClass#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #storageClassAsString}. *

* * @return Specifies the storage class of the recovery point. Valid values are WARM or * COLD. * @see StorageClass */ public final String storageClassAsString() { return storageClass; } /** *

* The date and time that a recovery point was last restored, in Unix format and Coordinated Universal Time (UTC). * The value of LastRestoreTime is accurate to milliseconds. For example, the value 1516925490.087 * represents Friday, January 26, 2018 12:11:30.087 AM. *

* * @return The date and time that a recovery point was last restored, in Unix format and Coordinated Universal Time * (UTC). The value of LastRestoreTime is accurate to milliseconds. For example, the value * 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. */ public final Instant lastRestoreTime() { return lastRestoreTime; } @Override public Builder toBuilder() { return new BuilderImpl(this); } public static Builder builder() { return new BuilderImpl(); } public static Class serializableBuilderClass() { return BuilderImpl.class; } @Override public final int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + super.hashCode(); hashCode = 31 * hashCode + Objects.hashCode(recoveryPointArn()); hashCode = 31 * hashCode + Objects.hashCode(backupVaultName()); hashCode = 31 * hashCode + Objects.hashCode(backupVaultArn()); hashCode = 31 * hashCode + Objects.hashCode(sourceBackupVaultArn()); hashCode = 31 * hashCode + Objects.hashCode(resourceArn()); hashCode = 31 * hashCode + Objects.hashCode(resourceType()); hashCode = 31 * hashCode + Objects.hashCode(createdBy()); hashCode = 31 * hashCode + Objects.hashCode(iamRoleArn()); hashCode = 31 * hashCode + Objects.hashCode(statusAsString()); hashCode = 31 * hashCode + Objects.hashCode(statusMessage()); hashCode = 31 * hashCode + Objects.hashCode(creationDate()); hashCode = 31 * hashCode + Objects.hashCode(completionDate()); hashCode = 31 * hashCode + Objects.hashCode(backupSizeInBytes()); hashCode = 31 * hashCode + Objects.hashCode(calculatedLifecycle()); hashCode = 31 * hashCode + Objects.hashCode(lifecycle()); hashCode = 31 * hashCode + Objects.hashCode(encryptionKeyArn()); hashCode = 31 * hashCode + Objects.hashCode(isEncrypted()); hashCode = 31 * hashCode + Objects.hashCode(storageClassAsString()); hashCode = 31 * hashCode + Objects.hashCode(lastRestoreTime()); return hashCode; } @Override public final boolean equals(Object obj) { return super.equals(obj) && equalsBySdkFields(obj); } @Override public final boolean equalsBySdkFields(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof DescribeRecoveryPointResponse)) { return false; } DescribeRecoveryPointResponse other = (DescribeRecoveryPointResponse) obj; return Objects.equals(recoveryPointArn(), other.recoveryPointArn()) && Objects.equals(backupVaultName(), other.backupVaultName()) && Objects.equals(backupVaultArn(), other.backupVaultArn()) && Objects.equals(sourceBackupVaultArn(), other.sourceBackupVaultArn()) && Objects.equals(resourceArn(), other.resourceArn()) && Objects.equals(resourceType(), other.resourceType()) && Objects.equals(createdBy(), other.createdBy()) && Objects.equals(iamRoleArn(), other.iamRoleArn()) && Objects.equals(statusAsString(), other.statusAsString()) && Objects.equals(statusMessage(), other.statusMessage()) && Objects.equals(creationDate(), other.creationDate()) && Objects.equals(completionDate(), other.completionDate()) && Objects.equals(backupSizeInBytes(), other.backupSizeInBytes()) && Objects.equals(calculatedLifecycle(), other.calculatedLifecycle()) && Objects.equals(lifecycle(), other.lifecycle()) && Objects.equals(encryptionKeyArn(), other.encryptionKeyArn()) && Objects.equals(isEncrypted(), other.isEncrypted()) && Objects.equals(storageClassAsString(), other.storageClassAsString()) && Objects.equals(lastRestoreTime(), other.lastRestoreTime()); } /** * 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. */ @Override public final String toString() { return ToString.builder("DescribeRecoveryPointResponse").add("RecoveryPointArn", recoveryPointArn()) .add("BackupVaultName", backupVaultName()).add("BackupVaultArn", backupVaultArn()) .add("SourceBackupVaultArn", sourceBackupVaultArn()).add("ResourceArn", resourceArn()) .add("ResourceType", resourceType()).add("CreatedBy", createdBy()).add("IamRoleArn", iamRoleArn()) .add("Status", statusAsString()).add("StatusMessage", statusMessage()).add("CreationDate", creationDate()) .add("CompletionDate", completionDate()).add("BackupSizeInBytes", backupSizeInBytes()) .add("CalculatedLifecycle", calculatedLifecycle()).add("Lifecycle", lifecycle()) .add("EncryptionKeyArn", encryptionKeyArn()).add("IsEncrypted", isEncrypted()) .add("StorageClass", storageClassAsString()).add("LastRestoreTime", lastRestoreTime()).build(); } public final Optional getValueForField(String fieldName, Class clazz) { switch (fieldName) { case "RecoveryPointArn": return Optional.ofNullable(clazz.cast(recoveryPointArn())); case "BackupVaultName": return Optional.ofNullable(clazz.cast(backupVaultName())); case "BackupVaultArn": return Optional.ofNullable(clazz.cast(backupVaultArn())); case "SourceBackupVaultArn": return Optional.ofNullable(clazz.cast(sourceBackupVaultArn())); case "ResourceArn": return Optional.ofNullable(clazz.cast(resourceArn())); case "ResourceType": return Optional.ofNullable(clazz.cast(resourceType())); case "CreatedBy": return Optional.ofNullable(clazz.cast(createdBy())); case "IamRoleArn": return Optional.ofNullable(clazz.cast(iamRoleArn())); case "Status": return Optional.ofNullable(clazz.cast(statusAsString())); case "StatusMessage": return Optional.ofNullable(clazz.cast(statusMessage())); case "CreationDate": return Optional.ofNullable(clazz.cast(creationDate())); case "CompletionDate": return Optional.ofNullable(clazz.cast(completionDate())); case "BackupSizeInBytes": return Optional.ofNullable(clazz.cast(backupSizeInBytes())); case "CalculatedLifecycle": return Optional.ofNullable(clazz.cast(calculatedLifecycle())); case "Lifecycle": return Optional.ofNullable(clazz.cast(lifecycle())); case "EncryptionKeyArn": return Optional.ofNullable(clazz.cast(encryptionKeyArn())); case "IsEncrypted": return Optional.ofNullable(clazz.cast(isEncrypted())); case "StorageClass": return Optional.ofNullable(clazz.cast(storageClassAsString())); case "LastRestoreTime": return Optional.ofNullable(clazz.cast(lastRestoreTime())); default: return Optional.empty(); } } @Override public final List> sdkFields() { return SDK_FIELDS; } private static Function getter(Function g) { return obj -> g.apply((DescribeRecoveryPointResponse) obj); } private static BiConsumer setter(BiConsumer s) { return (obj, val) -> s.accept((Builder) obj, val); } public interface Builder extends BackupResponse.Builder, SdkPojo, CopyableBuilder { /** *

* An 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 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. */ Builder recoveryPointArn(String recoveryPointArn); /** *

* 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 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 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. */ Builder backupVaultName(String backupVaultName); /** *

* 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. */ Builder backupVaultArn(String backupVaultArn); /** *

* An Amazon Resource Name (ARN) that uniquely identifies the source vault where the resource was originally * backed up in; for example, arn:aws:backup:us-east-1:123456789012:vault:BackupVault. If the * recovery is restored to the same Amazon Web Services account or Region, this value will be null. *

* * @param sourceBackupVaultArn * An Amazon Resource Name (ARN) that uniquely identifies the source vault where the resource was * originally backed up in; for example, * arn:aws:backup:us-east-1:123456789012:vault:BackupVault. If the recovery is restored to * the same Amazon Web Services account or Region, this value will be null. * @return Returns a reference to this object so that method calls can be chained together. */ Builder sourceBackupVaultArn(String sourceBackupVaultArn); /** *

* An ARN that uniquely identifies a saved resource. The format of the ARN depends on the resource type. *

* * @param resourceArn * An ARN that uniquely identifies a saved 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. */ Builder resourceArn(String resourceArn); /** *

* The type of Amazon Web Services resource to save as a recovery point; for example, an Amazon Elastic Block * Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database. *

* * @param resourceType * The type of Amazon Web Services resource to save as a recovery point; for example, an Amazon Elastic * Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database. * @return Returns a reference to this object so that method calls can be chained together. */ Builder resourceType(String resourceType); /** *

* Contains identifying information about the creation of a recovery point, including the * BackupPlanArn, BackupPlanId, BackupPlanVersion, and * BackupRuleId of the backup plan used to create it. *

* * @param createdBy * Contains identifying information about the creation of a recovery point, including the * BackupPlanArn, BackupPlanId, BackupPlanVersion, and * BackupRuleId of the backup plan used to create it. * @return Returns a reference to this object so that method calls can be chained together. */ Builder createdBy(RecoveryPointCreator createdBy); /** *

* Contains identifying information about the creation of a recovery point, including the * BackupPlanArn, BackupPlanId, BackupPlanVersion, and * BackupRuleId of the backup plan used to create it. *

* This is a convenience that creates an instance of the {@link RecoveryPointCreator.Builder} avoiding the need * to create one manually via {@link RecoveryPointCreator#builder()}. * * When the {@link Consumer} completes, {@link RecoveryPointCreator.Builder#build()} is called immediately and * its result is passed to {@link #createdBy(RecoveryPointCreator)}. * * @param createdBy * a consumer that will call methods on {@link RecoveryPointCreator.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #createdBy(RecoveryPointCreator) */ default Builder createdBy(Consumer createdBy) { return createdBy(RecoveryPointCreator.builder().applyMutation(createdBy).build()); } /** *

* 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. */ Builder iamRoleArn(String iamRoleArn); /** *

* A status code specifying the state of the recovery point. *

*

* PARTIAL status indicates Backup could not create the recovery point before the backup window * closed. To increase your backup plan window using the API, see UpdateBackupPlan. * You can also increase your backup plan window using the Console by choosing and editing your backup plan. *

*

* EXPIRED status indicates that the recovery point has exceeded its retention period, but Backup * lacks permission or is otherwise unable to delete it. To manually delete these recovery points, see Step * 3: Delete the recovery points in the Clean up resources section of Getting started. *

* * @param status * A status code specifying the state of the recovery point.

*

* PARTIAL status indicates Backup could not create the recovery point before the backup * window closed. To increase your backup plan window using the API, see UpdateBackupPlan. You can also increase your backup plan window using the Console by choosing and * editing your backup plan. *

*

* EXPIRED status indicates that the recovery point has exceeded its retention period, but * Backup lacks permission or is otherwise unable to delete it. To manually delete these recovery points, * see * Step 3: Delete the recovery points in the Clean up resources section of Getting * started. * @see RecoveryPointStatus * @return Returns a reference to this object so that method calls can be chained together. * @see RecoveryPointStatus */ Builder status(String status); /** *

* A status code specifying the state of the recovery point. *

*

* PARTIAL status indicates Backup could not create the recovery point before the backup window * closed. To increase your backup plan window using the API, see UpdateBackupPlan. * You can also increase your backup plan window using the Console by choosing and editing your backup plan. *

*

* EXPIRED status indicates that the recovery point has exceeded its retention period, but Backup * lacks permission or is otherwise unable to delete it. To manually delete these recovery points, see Step * 3: Delete the recovery points in the Clean up resources section of Getting started. *

* * @param status * A status code specifying the state of the recovery point.

*

* PARTIAL status indicates Backup could not create the recovery point before the backup * window closed. To increase your backup plan window using the API, see UpdateBackupPlan. You can also increase your backup plan window using the Console by choosing and * editing your backup plan. *

*

* EXPIRED status indicates that the recovery point has exceeded its retention period, but * Backup lacks permission or is otherwise unable to delete it. To manually delete these recovery points, * see * Step 3: Delete the recovery points in the Clean up resources section of Getting * started. * @see RecoveryPointStatus * @return Returns a reference to this object so that method calls can be chained together. * @see RecoveryPointStatus */ Builder status(RecoveryPointStatus status); /** *

* A status message explaining the reason for the recovery point deletion failure. *

* * @param statusMessage * A status message explaining the reason for the recovery point deletion failure. * @return Returns a reference to this object so that method calls can be chained together. */ Builder statusMessage(String statusMessage); /** *

* The date and time that a recovery point is created, in Unix format and Coordinated Universal Time (UTC). The * value of CreationDate is accurate to milliseconds. For example, the value 1516925490.087 * represents Friday, January 26, 2018 12:11:30.087 AM. *

* * @param creationDate * The date and time that a recovery point is created, in Unix format and Coordinated Universal Time * (UTC). The value of CreationDate is accurate to milliseconds. For example, the value * 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. * @return Returns a reference to this object so that method calls can be chained together. */ Builder creationDate(Instant creationDate); /** *

* The date and time that a job to create a recovery point is completed, in Unix format and Coordinated * Universal Time (UTC). The value of CompletionDate is accurate to milliseconds. For example, the * value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. *

* * @param completionDate * The date and time that a job to create a recovery point is completed, in Unix format and Coordinated * Universal Time (UTC). The value of CompletionDate is accurate to milliseconds. For * example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. * @return Returns a reference to this object so that method calls can be chained together. */ Builder completionDate(Instant completionDate); /** *

* The size, in bytes, of a backup. *

* * @param backupSizeInBytes * The size, in bytes, of a backup. * @return Returns a reference to this object so that method calls can be chained together. */ Builder backupSizeInBytes(Long backupSizeInBytes); /** *

* 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. */ Builder calculatedLifecycle(CalculatedLifecycle calculatedLifecycle); /** *

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

* This is a convenience that creates an instance of the {@link CalculatedLifecycle.Builder} avoiding the need * to create one manually via {@link CalculatedLifecycle#builder()}. * * When the {@link Consumer} completes, {@link CalculatedLifecycle.Builder#build()} is called immediately and * its result is passed to {@link #calculatedLifecycle(CalculatedLifecycle)}. * * @param calculatedLifecycle * a consumer that will call methods on {@link CalculatedLifecycle.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #calculatedLifecycle(CalculatedLifecycle) */ default Builder calculatedLifecycle(Consumer calculatedLifecycle) { return calculatedLifecycle(CalculatedLifecycle.builder().applyMutation(calculatedLifecycle).build()); } /** *

* 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 that are transitioned to cold storage must be stored in cold storage for a minimum of 90 days. * Therefore, the “expire after days” 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. *

*

* Only Amazon EFS file system backups can be transitioned to cold storage. *

* * @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 that are transitioned to cold storage must be stored in cold storage for a minimum of 90 days. * Therefore, the “expire after days” 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. *

*

* Only Amazon EFS file system backups can be transitioned to cold storage. * @return Returns a reference to this object so that method calls can be chained together. */ Builder lifecycle(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 that are transitioned to cold storage must be stored in cold storage for a minimum of 90 days. * Therefore, the “expire after days” 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. *

*

* Only Amazon EFS file system backups can be transitioned to cold storage. *

* This is a convenience that creates an instance of the {@link Lifecycle.Builder} avoiding the need to create * one manually via {@link Lifecycle#builder()}. * * When the {@link Consumer} completes, {@link Lifecycle.Builder#build()} is called immediately and its result * is passed to {@link #lifecycle(Lifecycle)}. * * @param lifecycle * a consumer that will call methods on {@link Lifecycle.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #lifecycle(Lifecycle) */ default Builder lifecycle(Consumer lifecycle) { return lifecycle(Lifecycle.builder().applyMutation(lifecycle).build()); } /** *

* The server-side encryption key used to protect your backups; for example, * arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab. *

* * @param encryptionKeyArn * The server-side encryption key used to protect your backups; for example, * arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab. * @return Returns a reference to this object so that method calls can be chained together. */ Builder encryptionKeyArn(String encryptionKeyArn); /** *

* A Boolean value that is returned as TRUE if the specified recovery point is encrypted, or * FALSE if the recovery point is not encrypted. *

* * @param isEncrypted * A Boolean value that is returned as TRUE if the specified recovery point is encrypted, or * FALSE if the recovery point is not encrypted. * @return Returns a reference to this object so that method calls can be chained together. */ Builder isEncrypted(Boolean isEncrypted); /** *

* Specifies the storage class of the recovery point. Valid values are WARM or COLD. *

* * @param storageClass * Specifies the storage class of the recovery point. Valid values are WARM or * COLD. * @see StorageClass * @return Returns a reference to this object so that method calls can be chained together. * @see StorageClass */ Builder storageClass(String storageClass); /** *

* Specifies the storage class of the recovery point. Valid values are WARM or COLD. *

* * @param storageClass * Specifies the storage class of the recovery point. Valid values are WARM or * COLD. * @see StorageClass * @return Returns a reference to this object so that method calls can be chained together. * @see StorageClass */ Builder storageClass(StorageClass storageClass); /** *

* The date and time that a recovery point was last restored, in Unix format and Coordinated Universal Time * (UTC). The value of LastRestoreTime is accurate to milliseconds. For example, the value * 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. *

* * @param lastRestoreTime * The date and time that a recovery point was last restored, in Unix format and Coordinated Universal * Time (UTC). The value of LastRestoreTime is accurate to milliseconds. For example, the * value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. * @return Returns a reference to this object so that method calls can be chained together. */ Builder lastRestoreTime(Instant lastRestoreTime); } static final class BuilderImpl extends BackupResponse.BuilderImpl implements Builder { private String recoveryPointArn; private String backupVaultName; private String backupVaultArn; private String sourceBackupVaultArn; private String resourceArn; private String resourceType; private RecoveryPointCreator createdBy; private String iamRoleArn; private String status; private String statusMessage; private Instant creationDate; private Instant completionDate; private Long backupSizeInBytes; private CalculatedLifecycle calculatedLifecycle; private Lifecycle lifecycle; private String encryptionKeyArn; private Boolean isEncrypted; private String storageClass; private Instant lastRestoreTime; private BuilderImpl() { } private BuilderImpl(DescribeRecoveryPointResponse model) { super(model); recoveryPointArn(model.recoveryPointArn); backupVaultName(model.backupVaultName); backupVaultArn(model.backupVaultArn); sourceBackupVaultArn(model.sourceBackupVaultArn); resourceArn(model.resourceArn); resourceType(model.resourceType); createdBy(model.createdBy); iamRoleArn(model.iamRoleArn); status(model.status); statusMessage(model.statusMessage); creationDate(model.creationDate); completionDate(model.completionDate); backupSizeInBytes(model.backupSizeInBytes); calculatedLifecycle(model.calculatedLifecycle); lifecycle(model.lifecycle); encryptionKeyArn(model.encryptionKeyArn); isEncrypted(model.isEncrypted); storageClass(model.storageClass); lastRestoreTime(model.lastRestoreTime); } public final String getRecoveryPointArn() { return recoveryPointArn; } public final void setRecoveryPointArn(String recoveryPointArn) { this.recoveryPointArn = recoveryPointArn; } @Override @Transient public final Builder recoveryPointArn(String recoveryPointArn) { this.recoveryPointArn = recoveryPointArn; return this; } public final String getBackupVaultName() { return backupVaultName; } public final void setBackupVaultName(String backupVaultName) { this.backupVaultName = backupVaultName; } @Override @Transient public final Builder backupVaultName(String backupVaultName) { this.backupVaultName = backupVaultName; return this; } public final String getBackupVaultArn() { return backupVaultArn; } public final void setBackupVaultArn(String backupVaultArn) { this.backupVaultArn = backupVaultArn; } @Override @Transient public final Builder backupVaultArn(String backupVaultArn) { this.backupVaultArn = backupVaultArn; return this; } public final String getSourceBackupVaultArn() { return sourceBackupVaultArn; } public final void setSourceBackupVaultArn(String sourceBackupVaultArn) { this.sourceBackupVaultArn = sourceBackupVaultArn; } @Override @Transient public final Builder sourceBackupVaultArn(String sourceBackupVaultArn) { this.sourceBackupVaultArn = sourceBackupVaultArn; return this; } public final String getResourceArn() { return resourceArn; } public final void setResourceArn(String resourceArn) { this.resourceArn = resourceArn; } @Override @Transient public final Builder resourceArn(String resourceArn) { this.resourceArn = resourceArn; return this; } public final String getResourceType() { return resourceType; } public final void setResourceType(String resourceType) { this.resourceType = resourceType; } @Override @Transient public final Builder resourceType(String resourceType) { this.resourceType = resourceType; return this; } public final RecoveryPointCreator.Builder getCreatedBy() { return createdBy != null ? createdBy.toBuilder() : null; } public final void setCreatedBy(RecoveryPointCreator.BuilderImpl createdBy) { this.createdBy = createdBy != null ? createdBy.build() : null; } @Override @Transient public final Builder createdBy(RecoveryPointCreator createdBy) { this.createdBy = createdBy; return this; } public final String getIamRoleArn() { return iamRoleArn; } public final void setIamRoleArn(String iamRoleArn) { this.iamRoleArn = iamRoleArn; } @Override @Transient public final Builder iamRoleArn(String iamRoleArn) { this.iamRoleArn = iamRoleArn; return this; } public final String getStatus() { return status; } public final void setStatus(String status) { this.status = status; } @Override @Transient public final Builder status(String status) { this.status = status; return this; } @Override @Transient public final Builder status(RecoveryPointStatus status) { this.status(status == null ? null : status.toString()); return this; } public final String getStatusMessage() { return statusMessage; } public final void setStatusMessage(String statusMessage) { this.statusMessage = statusMessage; } @Override @Transient public final Builder statusMessage(String statusMessage) { this.statusMessage = statusMessage; return this; } public final Instant getCreationDate() { return creationDate; } public final void setCreationDate(Instant creationDate) { this.creationDate = creationDate; } @Override @Transient public final Builder creationDate(Instant creationDate) { this.creationDate = creationDate; return this; } public final Instant getCompletionDate() { return completionDate; } public final void setCompletionDate(Instant completionDate) { this.completionDate = completionDate; } @Override @Transient public final Builder completionDate(Instant completionDate) { this.completionDate = completionDate; return this; } public final Long getBackupSizeInBytes() { return backupSizeInBytes; } public final void setBackupSizeInBytes(Long backupSizeInBytes) { this.backupSizeInBytes = backupSizeInBytes; } @Override @Transient public final Builder backupSizeInBytes(Long backupSizeInBytes) { this.backupSizeInBytes = backupSizeInBytes; return this; } public final CalculatedLifecycle.Builder getCalculatedLifecycle() { return calculatedLifecycle != null ? calculatedLifecycle.toBuilder() : null; } public final void setCalculatedLifecycle(CalculatedLifecycle.BuilderImpl calculatedLifecycle) { this.calculatedLifecycle = calculatedLifecycle != null ? calculatedLifecycle.build() : null; } @Override @Transient public final Builder calculatedLifecycle(CalculatedLifecycle calculatedLifecycle) { this.calculatedLifecycle = calculatedLifecycle; return this; } public final Lifecycle.Builder getLifecycle() { return lifecycle != null ? lifecycle.toBuilder() : null; } public final void setLifecycle(Lifecycle.BuilderImpl lifecycle) { this.lifecycle = lifecycle != null ? lifecycle.build() : null; } @Override @Transient public final Builder lifecycle(Lifecycle lifecycle) { this.lifecycle = lifecycle; return this; } public final String getEncryptionKeyArn() { return encryptionKeyArn; } public final void setEncryptionKeyArn(String encryptionKeyArn) { this.encryptionKeyArn = encryptionKeyArn; } @Override @Transient public final Builder encryptionKeyArn(String encryptionKeyArn) { this.encryptionKeyArn = encryptionKeyArn; return this; } public final Boolean getIsEncrypted() { return isEncrypted; } public final void setIsEncrypted(Boolean isEncrypted) { this.isEncrypted = isEncrypted; } @Override @Transient public final Builder isEncrypted(Boolean isEncrypted) { this.isEncrypted = isEncrypted; return this; } public final String getStorageClass() { return storageClass; } public final void setStorageClass(String storageClass) { this.storageClass = storageClass; } @Override @Transient public final Builder storageClass(String storageClass) { this.storageClass = storageClass; return this; } @Override @Transient public final Builder storageClass(StorageClass storageClass) { this.storageClass(storageClass == null ? null : storageClass.toString()); return this; } public final Instant getLastRestoreTime() { return lastRestoreTime; } public final void setLastRestoreTime(Instant lastRestoreTime) { this.lastRestoreTime = lastRestoreTime; } @Override @Transient public final Builder lastRestoreTime(Instant lastRestoreTime) { this.lastRestoreTime = lastRestoreTime; return this; } @Override public DescribeRecoveryPointResponse build() { return new DescribeRecoveryPointResponse(this); } @Override public List> sdkFields() { return SDK_FIELDS; } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy