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

com.azure.resourcemanager.hybridcompute.models.ConnectionDetail 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.

The 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.models;

import com.azure.core.annotation.Immutable;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
import java.io.IOException;

/**
 * The ConnectionDetail model.
 */
@Immutable
public final class ConnectionDetail implements JsonSerializable {
    /*
     * Azure resource Id
     */
    private String id;

    /*
     * The private endpoint connection private ip address
     */
    private String privateIpAddress;

    /*
     * The private endpoint connection link identifier
     */
    private String linkIdentifier;

    /*
     * The private endpoint connection group id
     */
    private String groupId;

    /*
     * The private endpoint connection member name
     */
    private String memberName;

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

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

    /**
     * Get the privateIpAddress property: The private endpoint connection private ip address.
     * 
     * @return the privateIpAddress value.
     */
    public String privateIpAddress() {
        return this.privateIpAddress;
    }

    /**
     * Get the linkIdentifier property: The private endpoint connection link identifier.
     * 
     * @return the linkIdentifier value.
     */
    public String linkIdentifier() {
        return this.linkIdentifier;
    }

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

    /**
     * Get the memberName property: The private endpoint connection member name.
     * 
     * @return the memberName value.
     */
    public String memberName() {
        return this.memberName;
    }

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

    /**
     * {@inheritDoc}
     */
    @Override
    public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
        jsonWriter.writeStartObject();
        return jsonWriter.writeEndObject();
    }

    /**
     * Reads an instance of ConnectionDetail from the JsonReader.
     * 
     * @param jsonReader The JsonReader being read.
     * @return An instance of ConnectionDetail if the JsonReader was pointing to an instance of it, or null if it was
     * pointing to JSON null.
     * @throws IOException If an error occurs while reading the ConnectionDetail.
     */
    public static ConnectionDetail fromJson(JsonReader jsonReader) throws IOException {
        return jsonReader.readObject(reader -> {
            ConnectionDetail deserializedConnectionDetail = new ConnectionDetail();
            while (reader.nextToken() != JsonToken.END_OBJECT) {
                String fieldName = reader.getFieldName();
                reader.nextToken();

                if ("id".equals(fieldName)) {
                    deserializedConnectionDetail.id = reader.getString();
                } else if ("privateIpAddress".equals(fieldName)) {
                    deserializedConnectionDetail.privateIpAddress = reader.getString();
                } else if ("linkIdentifier".equals(fieldName)) {
                    deserializedConnectionDetail.linkIdentifier = reader.getString();
                } else if ("groupId".equals(fieldName)) {
                    deserializedConnectionDetail.groupId = reader.getString();
                } else if ("memberName".equals(fieldName)) {
                    deserializedConnectionDetail.memberName = reader.getString();
                } else {
                    reader.skipChildren();
                }
            }

            return deserializedConnectionDetail;
        });
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy