Class PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState
java.lang.Object
com.azure.resourcemanager.search.models.PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState>
public final class PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState
extends Object
implements com.azure.json.JsonSerializable<PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState>
Describes the current state of an existing Azure Private Link service connection to the private endpoint.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState class. -
Method Summary
Modifier and TypeMethodDescriptionGet the actionsRequired property: A description of any extra actions that may be required.Get the description property: The description for the private link service connection state.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState from the JsonReader.status()Get the status property: Status of the the private link service connection.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withActionsRequired(String actionsRequired) Set the actionsRequired property: A description of any extra actions that may be required.withDescription(String description) Set the description property: The description for the private link service connection state.Set the status property: Status of the the private link service connection.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
-
PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState
public PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState()Creates an instance of PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState class.
-
-
Method Details
-
status
Get the status property: Status of the the private link service connection. Valid values are Pending, Approved, Rejected, or Disconnected.- Returns:
- the status value.
-
withStatus
public PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState withStatus(PrivateLinkServiceConnectionStatus status) Set the status property: Status of the the private link service connection. Valid values are Pending, Approved, Rejected, or Disconnected.- Parameters:
status- the status value to set.- Returns:
- the PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState object itself.
-
description
Get the description property: The description for the private link service connection state.- Returns:
- the description value.
-
withDescription
public PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState withDescription(String description) Set the description property: The description for the private link service connection state.- Parameters:
description- the description value to set.- Returns:
- the PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState object itself.
-
actionsRequired
Get the actionsRequired property: A description of any extra actions that may be required.- Returns:
- the actionsRequired value.
-
withActionsRequired
public PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState withActionsRequired(String actionsRequired) Set the actionsRequired property: A description of any extra actions that may be required.- Parameters:
actionsRequired- the actionsRequired value to set.- Returns:
- the PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState 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<PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState>- Throws:
IOException
-
fromJson
public static PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState 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 PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState.
-