com.azure.resourcemanager.keyvault.models.MhsmPrivateEndpoint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-keyvault Show documentation
Show all versions of azure-resourcemanager-keyvault Show documentation
This package contains Microsoft Azure Key Vault Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt
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.keyvault.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 object properties.
*/
@Immutable
public final class MhsmPrivateEndpoint implements JsonSerializable {
/*
* Full identifier of the private endpoint resource.
*/
private String id;
/**
* Creates an instance of MhsmPrivateEndpoint class.
*/
public MhsmPrivateEndpoint() {
}
/**
* Get the id property: Full identifier of the private endpoint resource.
*
* @return the id value.
*/
public String id() {
return this.id;
}
/**
* 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 MhsmPrivateEndpoint from the JsonReader.
*
* @param jsonReader The JsonReader being read.
* @return An instance of MhsmPrivateEndpoint 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 MhsmPrivateEndpoint.
*/
public static MhsmPrivateEndpoint fromJson(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
MhsmPrivateEndpoint deserializedMhsmPrivateEndpoint = new MhsmPrivateEndpoint();
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();
if ("id".equals(fieldName)) {
deserializedMhsmPrivateEndpoint.id = reader.getString();
} else {
reader.skipChildren();
}
}
return deserializedMhsmPrivateEndpoint;
});
}
}