
com.azure.resourcemanager.deviceupdate.models.ConnectionDetails Maven / Gradle / Ivy
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.deviceupdate.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;
/**
* Private endpoint connection proxy object properties.
*/
@Immutable
public final class ConnectionDetails implements JsonSerializable {
/*
* Connection details ID.
*/
private String id;
/*
* Private IP address.
*/
private String privateIpAddress;
/*
* Link ID.
*/
private String linkIdentifier;
/*
* Group ID.
*/
private String groupId;
/*
* Member name.
*/
private String memberName;
/**
* Creates an instance of ConnectionDetails class.
*/
public ConnectionDetails() {
}
/**
* Get the id property: Connection details ID.
*
* @return the id value.
*/
public String id() {
return this.id;
}
/**
* Get the privateIpAddress property: Private IP address.
*
* @return the privateIpAddress value.
*/
public String privateIpAddress() {
return this.privateIpAddress;
}
/**
* Get the linkIdentifier property: Link ID.
*
* @return the linkIdentifier value.
*/
public String linkIdentifier() {
return this.linkIdentifier;
}
/**
* Get the groupId property: Group ID.
*
* @return the groupId value.
*/
public String groupId() {
return this.groupId;
}
/**
* Get the memberName property: 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 ConnectionDetails from the JsonReader.
*
* @param jsonReader The JsonReader being read.
* @return An instance of ConnectionDetails 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 ConnectionDetails.
*/
public static ConnectionDetails fromJson(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
ConnectionDetails deserializedConnectionDetails = new ConnectionDetails();
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();
if ("id".equals(fieldName)) {
deserializedConnectionDetails.id = reader.getString();
} else if ("privateIpAddress".equals(fieldName)) {
deserializedConnectionDetails.privateIpAddress = reader.getString();
} else if ("linkIdentifier".equals(fieldName)) {
deserializedConnectionDetails.linkIdentifier = reader.getString();
} else if ("groupId".equals(fieldName)) {
deserializedConnectionDetails.groupId = reader.getString();
} else if ("memberName".equals(fieldName)) {
deserializedConnectionDetails.memberName = reader.getString();
} else {
reader.skipChildren();
}
}
return deserializedConnectionDetails;
});
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy