PrivateLinkServiceConnectionState Class

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

Implements

public final class PrivateLinkServiceConnectionState
implements JsonSerializable<PrivateLinkServiceConnectionState>

The state of a private link service connection.

Constructor Summary

Constructor Description
PrivateLinkServiceConnectionState()

Creates an instance of PrivateLinkServiceConnectionState class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: The private link service connection description.

static PrivateLinkServiceConnectionState fromJson(JsonReader jsonReader)

Reads an instance of PrivateLinkServiceConnectionState from the JsonReader.

ConnectionStatus status()

Get the status property: The private link service connection status.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PrivateLinkServiceConnectionState withDescription(String description)

Set the description property: The private link service connection description.

PrivateLinkServiceConnectionState withStatus(ConnectionStatus status)

Set the status property: The private link service connection status.

Methods inherited from java.lang.Object

Constructor Details

PrivateLinkServiceConnectionState

public PrivateLinkServiceConnectionState()

Creates an instance of PrivateLinkServiceConnectionState class.

Method Details

description

public String description()

Get the description property: The private link service connection description.

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 ConnectionStatus status()

Get the status property: The private link service connection status.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDescription

public PrivateLinkServiceConnectionState withDescription(String description)

Set the description property: The private link service connection description.

Parameters:

description - the description value to set.

Returns:

the PrivateLinkServiceConnectionState object itself.

withStatus

public PrivateLinkServiceConnectionState withStatus(ConnectionStatus status)

Set the status property: The private link service connection status.

Parameters:

status - the status value to set.

Returns:

the PrivateLinkServiceConnectionState object itself.

Applies to