ApprovalReference Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.ApprovalReference

Implements

public final class ApprovalReference
implements JsonSerializable<ApprovalReference>

Reference to an existing approved private endpoint used to inherit its connection approval state.

Constructor Summary

Constructor Description
ApprovalReference()

Creates an instance of ApprovalReference class.

Method Summary

Modifier and Type Method and Description
static ApprovalReference fromJson(JsonReader jsonReader)

Reads an instance of ApprovalReference from the JsonReader.

String privateEndpointId()

Get the privateEndpointId property: The ARM resource id of an existing approved private endpoint whose approval state is inherited by this connection.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ApprovalReference withPrivateEndpointId(String privateEndpointId)

Set the privateEndpointId property: The ARM resource id of an existing approved private endpoint whose approval state is inherited by this connection.

Methods inherited from java.lang.Object

Constructor Details

ApprovalReference

public ApprovalReference()

Creates an instance of ApprovalReference class.

Method Details

fromJson

public static ApprovalReference fromJson(JsonReader jsonReader)

Reads an instance of ApprovalReference from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ApprovalReference 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 ApprovalReference.

privateEndpointId

public String privateEndpointId()

Get the privateEndpointId property: The ARM resource id of an existing approved private endpoint whose approval state is inherited by this connection.

Returns:

the privateEndpointId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withPrivateEndpointId

public ApprovalReference withPrivateEndpointId(String privateEndpointId)

Set the privateEndpointId property: The ARM resource id of an existing approved private endpoint whose approval state is inherited by this connection.

Parameters:

privateEndpointId - the privateEndpointId value to set.

Returns:

the ApprovalReference object itself.

Applies to