PrivateLinkServiceConnectionState Class

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

Implements

public final class PrivateLinkServiceConnectionState
implements JsonSerializable<PrivateLinkServiceConnectionState>

A collection of information about the state of the connection between service consumer and provider.

Constructor Summary

Constructor Description
PrivateLinkServiceConnectionState()

Creates an instance of PrivateLinkServiceConnectionState class.

Method Summary

Modifier and Type Method and Description
String actionsRequired()

Get the actionsRequired property: A message indicating if changes on the service provider require any updates on the consumer.

String description()

Get the description property: The reason for approval/rejection of the connection.

static PrivateLinkServiceConnectionState fromJson(JsonReader jsonReader)

Reads an instance of PrivateLinkServiceConnectionState from the JsonReader.

String status()

Get the status property: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PrivateLinkServiceConnectionState withActionsRequired(String actionsRequired)

Set the actionsRequired property: A message indicating if changes on the service provider require any updates on the consumer.

PrivateLinkServiceConnectionState withDescription(String description)

Set the description property: The reason for approval/rejection of the connection.

PrivateLinkServiceConnectionState withStatus(String status)

Set the status property: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.

Methods inherited from java.lang.Object

Constructor Details

PrivateLinkServiceConnectionState

public PrivateLinkServiceConnectionState()

Creates an instance of PrivateLinkServiceConnectionState class.

Method Details

actionsRequired

public String actionsRequired()

Get the actionsRequired property: A message indicating if changes on the service provider require any updates on the consumer.

Returns:

the actionsRequired value.

description

public String description()

Get the description property: The reason for approval/rejection of the connection.

Returns:

the description value.

fromJson

public static PrivateLinkServiceConnectionState fromJson(JsonReader jsonReader)

Reads an instance of PrivateLinkServiceConnectionState from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

status

public String status()

Get the status property: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withActionsRequired

public PrivateLinkServiceConnectionState withActionsRequired(String actionsRequired)

Set the actionsRequired property: A message indicating if changes on the service provider require any updates on the consumer.

Parameters:

actionsRequired - the actionsRequired value to set.

Returns:

the PrivateLinkServiceConnectionState object itself.

withDescription

public PrivateLinkServiceConnectionState withDescription(String description)

Set the description property: The reason for approval/rejection of the connection.

Parameters:

description - the description value to set.

Returns:

the PrivateLinkServiceConnectionState object itself.

withStatus

public PrivateLinkServiceConnectionState withStatus(String status)

Set the status property: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.

Parameters:

status - the status value to set.

Returns:

the PrivateLinkServiceConnectionState object itself.

Applies to