// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.dataprotection.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;

/**
 * RecoveryPointDataStoreDetails
 *
 * <p>RecoveryPoint datastore details.
 */
@Fluent
public final class RecoveryPointDataStoreDetails {
    /*
     * The creationTime property.
     */
    @JsonProperty(value = "creationTime")
    private OffsetDateTime creationTime;

    /*
     * The expiryTime property.
     */
    @JsonProperty(value = "expiryTime")
    private OffsetDateTime expiryTime;

    /*
     * The id property.
     */
    @JsonProperty(value = "id")
    private String id;

    /*
     * The metaData property.
     */
    @JsonProperty(value = "metaData")
    private String metadata;

    /*
     * The state property.
     */
    @JsonProperty(value = "state")
    private String state;

    /*
     * The type property.
     */
    @JsonProperty(value = "type")
    private String type;

    /*
     * The visible property.
     */
    @JsonProperty(value = "visible")
    private Boolean visible;

    /*
     * The rehydrationExpiryTime property.
     */
    @JsonProperty(value = "rehydrationExpiryTime", access = JsonProperty.Access.WRITE_ONLY)
    private OffsetDateTime rehydrationExpiryTime;

    /*
     * The rehydrationStatus property.
     */
    @JsonProperty(value = "rehydrationStatus", access = JsonProperty.Access.WRITE_ONLY)
    private RehydrationStatus rehydrationStatus;

    /** Creates an instance of RecoveryPointDataStoreDetails class. */
    public RecoveryPointDataStoreDetails() {
    }

    /**
     * Get the creationTime property: The creationTime property.
     *
     * @return the creationTime value.
     */
    public OffsetDateTime creationTime() {
        return this.creationTime;
    }

    /**
     * Set the creationTime property: The creationTime property.
     *
     * @param creationTime the creationTime value to set.
     * @return the RecoveryPointDataStoreDetails object itself.
     */
    public RecoveryPointDataStoreDetails withCreationTime(OffsetDateTime creationTime) {
        this.creationTime = creationTime;
        return this;
    }

    /**
     * Get the expiryTime property: The expiryTime property.
     *
     * @return the expiryTime value.
     */
    public OffsetDateTime expiryTime() {
        return this.expiryTime;
    }

    /**
     * Set the expiryTime property: The expiryTime property.
     *
     * @param expiryTime the expiryTime value to set.
     * @return the RecoveryPointDataStoreDetails object itself.
     */
    public RecoveryPointDataStoreDetails withExpiryTime(OffsetDateTime expiryTime) {
        this.expiryTime = expiryTime;
        return this;
    }

    /**
     * Get the id property: The id property.
     *
     * @return the id value.
     */
    public String id() {
        return this.id;
    }

    /**
     * Set the id property: The id property.
     *
     * @param id the id value to set.
     * @return the RecoveryPointDataStoreDetails object itself.
     */
    public RecoveryPointDataStoreDetails withId(String id) {
        this.id = id;
        return this;
    }

    /**
     * Get the metadata property: The metaData property.
     *
     * @return the metadata value.
     */
    public String metadata() {
        return this.metadata;
    }

    /**
     * Set the metadata property: The metaData property.
     *
     * @param metadata the metadata value to set.
     * @return the RecoveryPointDataStoreDetails object itself.
     */
    public RecoveryPointDataStoreDetails withMetadata(String metadata) {
        this.metadata = metadata;
        return this;
    }

    /**
     * Get the state property: The state property.
     *
     * @return the state value.
     */
    public String state() {
        return this.state;
    }

    /**
     * Set the state property: The state property.
     *
     * @param state the state value to set.
     * @return the RecoveryPointDataStoreDetails object itself.
     */
    public RecoveryPointDataStoreDetails withState(String state) {
        this.state = state;
        return this;
    }

    /**
     * Get the type property: The type property.
     *
     * @return the type value.
     */
    public String type() {
        return this.type;
    }

    /**
     * Set the type property: The type property.
     *
     * @param type the type value to set.
     * @return the RecoveryPointDataStoreDetails object itself.
     */
    public RecoveryPointDataStoreDetails withType(String type) {
        this.type = type;
        return this;
    }

    /**
     * Get the visible property: The visible property.
     *
     * @return the visible value.
     */
    public Boolean visible() {
        return this.visible;
    }

    /**
     * Set the visible property: The visible property.
     *
     * @param visible the visible value to set.
     * @return the RecoveryPointDataStoreDetails object itself.
     */
    public RecoveryPointDataStoreDetails withVisible(Boolean visible) {
        this.visible = visible;
        return this;
    }

    /**
     * Get the rehydrationExpiryTime property: The rehydrationExpiryTime property.
     *
     * @return the rehydrationExpiryTime value.
     */
    public OffsetDateTime rehydrationExpiryTime() {
        return this.rehydrationExpiryTime;
    }

    /**
     * Get the rehydrationStatus property: The rehydrationStatus property.
     *
     * @return the rehydrationStatus value.
     */
    public RehydrationStatus rehydrationStatus() {
        return this.rehydrationStatus;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
