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

com.azure.resourcemanager.hybridcompute.fluent.models.PrivateLinkScopeValidationDetailsInner Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure SDK for HybridCompute Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Hybrid Compute Management Client. Package tag package-preview-2024-07.

There is a newer version: 1.1.0-beta.1
Show newest version
// 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.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.hybridcompute.models.ConnectionDetail;
import com.azure.resourcemanager.hybridcompute.models.PublicNetworkAccessType;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/**
 * The PrivateLinkScopeValidationDetails model.
 */
@Fluent
public final class PrivateLinkScopeValidationDetailsInner {
    /*
     * Azure resource Id
     */
    @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
    private String id;

    /*
     * Indicates whether machines associated with the private link scope can also use public Azure Arc service endpoints.
     */
    @JsonProperty(value = "publicNetworkAccess")
    private PublicNetworkAccessType publicNetworkAccess;

    /*
     * List of Private Endpoint Connection details.
     */
    @JsonProperty(value = "connectionDetails")
    private List connectionDetails;

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

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

    /**
     * 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 PrivateLinkScopeValidationDetailsInner object itself.
     */
    public PrivateLinkScopeValidationDetailsInner withPublicNetworkAccess(PublicNetworkAccessType publicNetworkAccess) {
        this.publicNetworkAccess = publicNetworkAccess;
        return this;
    }

    /**
     * Get the connectionDetails property: List of Private Endpoint Connection details.
     * 
     * @return the connectionDetails value.
     */
    public List connectionDetails() {
        return this.connectionDetails;
    }

    /**
     * Set the connectionDetails property: List of Private Endpoint Connection details.
     * 
     * @param connectionDetails the connectionDetails value to set.
     * @return the PrivateLinkScopeValidationDetailsInner object itself.
     */
    public PrivateLinkScopeValidationDetailsInner withConnectionDetails(List connectionDetails) {
        this.connectionDetails = connectionDetails;
        return this;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy