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

package com.azure.resourcemanager.hybridcompute.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Properties that define a Azure Arc PrivateLinkScope resource. */
@Fluent
public final class HybridComputePrivateLinkScopeProperties {
    /*
     * Indicates whether machines associated with the private link scope can also use public Azure Arc service
     * endpoints.
     */
    @JsonProperty(value = "publicNetworkAccess")
    private PublicNetworkAccessType publicNetworkAccess;

    /*
     * Current state of this PrivateLinkScope: whether or not is has been provisioned within the resource group it is
     * defined. Users cannot change this value but are able to read from it. Values will include Provisioning
     * ,Succeeded, Canceled and Failed.
     */
    @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
    private String provisioningState;

    /*
     * The Guid id of the private link scope.
     */
    @JsonProperty(value = "privateLinkScopeId", access = JsonProperty.Access.WRITE_ONLY)
    private String privateLinkScopeId;

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

    /**
     * Get the publicNetworkAccess property: Indicates whether machines associated with the private link scope can also
     * use public Azure Arc service endpoints.
     *
     * @return the publicNetworkAccess value.
     */
    public PublicNetworkAccessType publicNetworkAccess() {
        return this.publicNetworkAccess;
    }

    /**
     * Set the publicNetworkAccess property: Indicates whether machines associated with the private link scope can also
     * use public Azure Arc service endpoints.
     *
     * @param publicNetworkAccess the publicNetworkAccess value to set.
     * @return the HybridComputePrivateLinkScopeProperties object itself.
     */
    public HybridComputePrivateLinkScopeProperties withPublicNetworkAccess(
        PublicNetworkAccessType publicNetworkAccess) {
        this.publicNetworkAccess = publicNetworkAccess;
        return this;
    }

    /**
     * Get the provisioningState property: Current state of this PrivateLinkScope: whether or not is has been
     * provisioned within the resource group it is defined. Users cannot change this value but are able to read from it.
     * Values will include Provisioning ,Succeeded, Canceled and Failed.
     *
     * @return the provisioningState value.
     */
    public String provisioningState() {
        return this.provisioningState;
    }

    /**
     * Get the privateLinkScopeId property: The Guid id of the private link scope.
     *
     * @return the privateLinkScopeId value.
     */
    public String privateLinkScopeId() {
        return this.privateLinkScopeId;
    }

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