ConnectionState Class
- java.
lang. Object - com.
azure. resourcemanager. servicebus. models. ConnectionState
- com.
Implements
public final class ConnectionState
implements JsonSerializable<ConnectionState>
ConnectionState information.
Constructor Summary
Constructor | Description |
---|---|
ConnectionState() |
Creates an instance of Connection |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
description()
Get the description property: Description of the connection state. |
static
Connection |
fromJson(JsonReader jsonReader)
Reads an instance of Connection |
Private |
status()
Get the status property: Status of the connection. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Connection |
withDescription(String description)
Set the description property: Description of the connection state. |
Connection |
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:
fromJson
public static ConnectionState fromJson(JsonReader jsonReader)
Reads an instance of ConnectionState from the JsonReader.
Parameters:
Returns:
Throws:
status
public PrivateLinkConnectionStatus status()
Get the status property: Status of the connection.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDescription
public ConnectionState withDescription(String description)
Set the description property: Description of the connection state.
Parameters:
Returns:
withStatus
public ConnectionState withStatus(PrivateLinkConnectionStatus status)
Set the status property: Status of the connection.
Parameters:
Returns:
Applies to
Azure SDK for Java