Partilhar via


ConnectionState Class

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

Implements

public final class ConnectionState
implements JsonSerializable<ConnectionState>

ConnectionState information.

Constructor Summary

Constructor Description
ConnectionState()

Creates an instance of ConnectionState class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: Description of the connection state.

static ConnectionState fromJson(JsonReader jsonReader)

Reads an instance of ConnectionState from the JsonReader.

PrivateLinkConnectionStatus status()

Get the status property: Status of the connection.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ConnectionState withDescription(String description)

Set the description property: Description of the connection state.

ConnectionState withStatus(PrivateLinkConnectionStatus status)

Set the status property: Status of the connection.

Methods inherited from java.lang.Object

Constructor Details

ConnectionState

public ConnectionState()

Creates an instance of ConnectionState class.

Method Details

description

public String description()

Get the description property: Description of the connection state.

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 an error occurs while reading the ConnectionState.

status

public PrivateLinkConnectionStatus status()

Get the status property: Status of the connection.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDescription

public ConnectionState withDescription(String description)

Set the description property: Description of the connection state.

Parameters:

description - the description value to set.

Returns:

the ConnectionState object itself.

withStatus

public ConnectionState withStatus(PrivateLinkConnectionStatus status)

Set the status property: Status of the connection.

Parameters:

status - the status value to set.

Returns:

the ConnectionState object itself.

Applies to