Class ManagedInstancePrivateEndpointConnectionProperties

java.lang.Object
com.azure.resourcemanager.sql.fluent.models.ManagedInstancePrivateEndpointConnectionProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedInstancePrivateEndpointConnectionProperties>

public final class ManagedInstancePrivateEndpointConnectionProperties extends Object implements com.azure.json.JsonSerializable<ManagedInstancePrivateEndpointConnectionProperties>
Properties of a private endpoint connection.
  • Constructor Details

    • ManagedInstancePrivateEndpointConnectionProperties

      public ManagedInstancePrivateEndpointConnectionProperties()
      Creates an instance of ManagedInstancePrivateEndpointConnectionProperties class.
  • Method Details

    • privateEndpoint

      public ManagedInstancePrivateEndpointProperty privateEndpoint()
      Get the privateEndpoint property: Private endpoint which the connection belongs to.
      Returns:
      the privateEndpoint value.
    • withPrivateEndpoint

      Set the privateEndpoint property: Private endpoint which the connection belongs to.
      Parameters:
      privateEndpoint - the privateEndpoint value to set.
      Returns:
      the ManagedInstancePrivateEndpointConnectionProperties object itself.
    • privateLinkServiceConnectionState

      public ManagedInstancePrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState()
      Get the privateLinkServiceConnectionState property: Connection State of the Private Endpoint Connection.
      Returns:
      the privateLinkServiceConnectionState value.
    • withPrivateLinkServiceConnectionState

      public ManagedInstancePrivateEndpointConnectionProperties withPrivateLinkServiceConnectionState(ManagedInstancePrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState)
      Set the privateLinkServiceConnectionState property: Connection State of the Private Endpoint Connection.
      Parameters:
      privateLinkServiceConnectionState - the privateLinkServiceConnectionState value to set.
      Returns:
      the ManagedInstancePrivateEndpointConnectionProperties object itself.
    • provisioningState

      public String provisioningState()
      Get the provisioningState property: State of the Private Endpoint Connection.
      Returns:
      the provisioningState value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ManagedInstancePrivateEndpointConnectionProperties>
      Throws:
      IOException
    • fromJson

      public static ManagedInstancePrivateEndpointConnectionProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ManagedInstancePrivateEndpointConnectionProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ManagedInstancePrivateEndpointConnectionProperties 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 ManagedInstancePrivateEndpointConnectionProperties.