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

package com.azure.resourcemanager.fluidrelay.fluent.models;

import com.azure.core.annotation.Immutable;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.resourcemanager.fluidrelay.models.ProvisioningState;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;

/** A FluidRelay Container. */
@Immutable
public final class FluidRelayContainerInner extends ProxyResource {
    /*
     * The resource-specific properties for this resource.
     */
    @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
    private FluidRelayContainerProperties innerProperties;

    /*
     * System meta data for this resource, including creation and modification information.
     */
    @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
    private SystemData systemData;

    /**
     * Get the innerProperties property: The resource-specific properties for this resource.
     *
     * @return the innerProperties value.
     */
    private FluidRelayContainerProperties innerProperties() {
        return this.innerProperties;
    }

    /**
     * Get the systemData property: System meta data for this resource, including creation and modification information.
     *
     * @return the systemData value.
     */
    public SystemData systemData() {
        return this.systemData;
    }

    /**
     * Get the frsTenantId property: The Fluid tenantId for this container.
     *
     * @return the frsTenantId value.
     */
    public String frsTenantId() {
        return this.innerProperties() == null ? null : this.innerProperties().frsTenantId();
    }

    /**
     * Get the frsContainerId property: The frsContainerId for this container.
     *
     * @return the frsContainerId value.
     */
    public String frsContainerId() {
        return this.innerProperties() == null ? null : this.innerProperties().frsContainerId();
    }

    /**
     * Get the provisioningState property: Provision states for FluidRelay RP.
     *
     * @return the provisioningState value.
     */
    public ProvisioningState provisioningState() {
        return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
    }

    /**
     * Get the creationTime property: The creation time of this resource.
     *
     * @return the creationTime value.
     */
    public OffsetDateTime creationTime() {
        return this.innerProperties() == null ? null : this.innerProperties().creationTime();
    }

    /**
     * Get the lastAccessTime property: Last time when user access this resource.
     *
     * @return the lastAccessTime value.
     */
    public OffsetDateTime lastAccessTime() {
        return this.innerProperties() == null ? null : this.innerProperties().lastAccessTime();
    }

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