ConnectionState Class

  • java.lang.Object
    • com.azure.resourcemanager.digitaltwins.models.ConnectionState

Implements

public class ConnectionState
implements JsonSerializable<ConnectionState>

The current state of a private endpoint connection.

Constructor Summary

Constructor Description
ConnectionState()

Creates an instance of ConnectionState class.

Method Summary

Modifier and Type Method and Description
String actionsRequired()

Get the actionsRequired property: Actions required for a private endpoint connection.

String description()

Get the description property: The description for the current state of a private endpoint connection.

static ConnectionState fromJson(JsonReader jsonReader)

Reads an instance of ConnectionState from the JsonReader.

PrivateLinkServiceConnectionStatus status()

Get the status property: The status of a private endpoint connection.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ConnectionState withActionsRequired(String actionsRequired)

Set the actionsRequired property: Actions required for a private endpoint connection.

ConnectionState withDescription(String description)

Set the description property: The description for the current state of a private endpoint connection.

ConnectionState withStatus(PrivateLinkServiceConnectionStatus status)

Set the status property: The status of a private endpoint connection.

Methods inherited from java.lang.Object

Constructor Details

ConnectionState

public ConnectionState()

Creates an instance of ConnectionState class.

Method Details

actionsRequired

public String actionsRequired()

Get the actionsRequired property: Actions required for a private endpoint connection.

Returns:

the actionsRequired value.

description

public String description()

Get the description property: The description for the current state of a private endpoint connection.

Returns:

the description value.

fromJson

public static ConnectionState fromJson(JsonReader jsonReader)

Reads an instance of ConnectionState from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ConnectionState if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

status

public PrivateLinkServiceConnectionStatus status()

Get the status property: The status of a private endpoint connection.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withActionsRequired

public ConnectionState withActionsRequired(String actionsRequired)

Set the actionsRequired property: Actions required for a private endpoint connection.

Parameters:

actionsRequired - the actionsRequired value to set.

Returns:

the ConnectionState object itself.

withDescription

public ConnectionState withDescription(String description)

Set the description property: The description for the current state of a private endpoint connection.

Parameters:

description - the description value to set.

Returns:

the ConnectionState object itself.

withStatus

public ConnectionState withStatus(PrivateLinkServiceConnectionStatus status)

Set the status property: The status of a private endpoint connection.

Parameters:

status - the status value to set.

Returns:

the ConnectionState object itself.

Applies to