Class MhsmPrivateLinkServiceConnectionState
java.lang.Object
com.azure.resourcemanager.keyvault.models.MhsmPrivateLinkServiceConnectionState
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MhsmPrivateLinkServiceConnectionState>
public final class MhsmPrivateLinkServiceConnectionState
extends Object
implements com.azure.json.JsonSerializable<MhsmPrivateLinkServiceConnectionState>
An object that represents the approval state of the private link connection.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MhsmPrivateLinkServiceConnectionState class. -
Method Summary
Modifier and TypeMethodDescriptionGet the actionsRequired property: A message indicating if changes on the service provider require any updates on the consumer.Get the description property: The reason for approval or rejection.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MhsmPrivateLinkServiceConnectionState from the JsonReader.status()Get the status property: Indicates whether the connection has been approved, rejected or removed by the key vault owner.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withActionsRequired(ActionsRequired actionsRequired) Set the actionsRequired property: A message indicating if changes on the service provider require any updates on the consumer.withDescription(String description) Set the description property: The reason for approval or rejection.Set the status property: Indicates whether the connection has been approved, rejected or removed by the key vault owner.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
MhsmPrivateLinkServiceConnectionState
public MhsmPrivateLinkServiceConnectionState()Creates an instance of MhsmPrivateLinkServiceConnectionState class.
-
-
Method Details
-
status
Get the status property: Indicates whether the connection has been approved, rejected or removed by the key vault owner.- Returns:
- the status value.
-
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.
-
description
Get the description property: The reason for approval or rejection.- Returns:
- the description value.
-
withDescription
Set the description property: The reason for approval or rejection.- Parameters:
description- the description value to set.- Returns:
- the MhsmPrivateLinkServiceConnectionState object itself.
-
actionsRequired
Get the actionsRequired property: A message indicating if changes on the service provider require any updates on the consumer.- Returns:
- the actionsRequired value.
-
withActionsRequired
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<MhsmPrivateLinkServiceConnectionState>- Throws:
IOException
-
fromJson
public static MhsmPrivateLinkServiceConnectionState fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-