MhsmPrivateLinkServiceConnectionState Class

  • java.lang.Object
    • com.azure.resourcemanager.keyvault.models.MhsmPrivateLinkServiceConnectionState

Implements

public final class MhsmPrivateLinkServiceConnectionState
implements JsonSerializable<MhsmPrivateLinkServiceConnectionState>

An object that represents the approval state of the private link connection.

Constructor Summary

Constructor Description
MhsmPrivateLinkServiceConnectionState()

Creates an instance of MhsmPrivateLinkServiceConnectionState class.

Method Summary

Modifier and Type Method and Description
ActionsRequired 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 or rejection.

static MhsmPrivateLinkServiceConnectionState fromJson(JsonReader jsonReader)

Reads an instance of MhsmPrivateLinkServiceConnectionState from the JsonReader.

PrivateEndpointServiceConnectionStatus status()

Get the status property: Indicates whether the connection has been approved, rejected or removed by the key vault owner.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MhsmPrivateLinkServiceConnectionState withActionsRequired(ActionsRequired actionsRequired)

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

MhsmPrivateLinkServiceConnectionState withDescription(String description)

Set the description property: The reason for approval or rejection.

MhsmPrivateLinkServiceConnectionState withStatus(PrivateEndpointServiceConnectionStatus status)

Set the status property: Indicates whether the connection has been approved, rejected or removed by the key vault owner.

Methods inherited from java.lang.Object

Constructor Details

MhsmPrivateLinkServiceConnectionState

public MhsmPrivateLinkServiceConnectionState()

Creates an instance of MhsmPrivateLinkServiceConnectionState class.

Method Details

actionsRequired

public ActionsRequired 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 or rejection.

Returns:

the description value.

fromJson

public static MhsmPrivateLinkServiceConnectionState fromJson(JsonReader jsonReader)

Reads an instance of MhsmPrivateLinkServiceConnectionState from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

status

public PrivateEndpointServiceConnectionStatus status()

Get the status property: Indicates whether the connection has been approved, rejected or removed by the key vault owner.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withActionsRequired

public MhsmPrivateLinkServiceConnectionState withActionsRequired(ActionsRequired 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 MhsmPrivateLinkServiceConnectionState object itself.

withDescription

public MhsmPrivateLinkServiceConnectionState withDescription(String description)

Set the description property: The reason for approval or rejection.

Parameters:

description - the description value to set.

Returns:

the MhsmPrivateLinkServiceConnectionState object itself.

withStatus

public MhsmPrivateLinkServiceConnectionState withStatus(PrivateEndpointServiceConnectionStatus status)

Set the status property: Indicates whether the connection has been approved, rejected or removed by the key vault owner.

Parameters:

status - the status value to set.

Returns:

the MhsmPrivateLinkServiceConnectionState object itself.

Applies to