Class RegistryPrivateEndpointConnection

java.lang.Object
com.azure.resourcemanager.machinelearning.models.RegistryPrivateEndpointConnection
All Implemented Interfaces:
com.azure.json.JsonSerializable<RegistryPrivateEndpointConnection>

public final class RegistryPrivateEndpointConnection extends Object implements com.azure.json.JsonSerializable<RegistryPrivateEndpointConnection>
Private endpoint connection definition.
  • Constructor Details

    • RegistryPrivateEndpointConnection

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

    • id

      public String id()
      Get the id property: This is the private endpoint connection name created on SRP Full resource id: /subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.MachineLearningServices/{resourceType}/{resourceName}/registryPrivateEndpointConnections/{peConnectionName}.
      Returns:
      the id value.
    • withId

      Set the id property: This is the private endpoint connection name created on SRP Full resource id: /subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.MachineLearningServices/{resourceType}/{resourceName}/registryPrivateEndpointConnections/{peConnectionName}.
      Parameters:
      id - the id value to set.
      Returns:
      the RegistryPrivateEndpointConnection object itself.
    • location

      public String location()
      Get the location property: Same as workspace location.
      Returns:
      the location value.
    • withLocation

      public RegistryPrivateEndpointConnection withLocation(String location)
      Set the location property: Same as workspace location.
      Parameters:
      location - the location value to set.
      Returns:
      the RegistryPrivateEndpointConnection object itself.
    • groupIds

      public List<String> groupIds()
      Get the groupIds property: The group ids.
      Returns:
      the groupIds value.
    • withGroupIds

      public RegistryPrivateEndpointConnection withGroupIds(List<String> groupIds)
      Set the groupIds property: The group ids.
      Parameters:
      groupIds - the groupIds value to set.
      Returns:
      the RegistryPrivateEndpointConnection object itself.
    • privateEndpoint

      public PrivateEndpointResource privateEndpoint()
      Get the privateEndpoint property: The PE network resource that is linked to this PE connection.
      Returns:
      the privateEndpoint value.
    • withPrivateEndpoint

      public RegistryPrivateEndpointConnection withPrivateEndpoint(PrivateEndpointResource privateEndpoint)
      Set the privateEndpoint property: The PE network resource that is linked to this PE connection.
      Parameters:
      privateEndpoint - the privateEndpoint value to set.
      Returns:
      the RegistryPrivateEndpointConnection object itself.
    • registryPrivateLinkServiceConnectionState

      public RegistryPrivateLinkServiceConnectionState registryPrivateLinkServiceConnectionState()
      Get the registryPrivateLinkServiceConnectionState property: The connection state.
      Returns:
      the registryPrivateLinkServiceConnectionState value.
    • withRegistryPrivateLinkServiceConnectionState

      public RegistryPrivateEndpointConnection withRegistryPrivateLinkServiceConnectionState(RegistryPrivateLinkServiceConnectionState registryPrivateLinkServiceConnectionState)
      Set the registryPrivateLinkServiceConnectionState property: The connection state.
      Parameters:
      registryPrivateLinkServiceConnectionState - the registryPrivateLinkServiceConnectionState value to set.
      Returns:
      the RegistryPrivateEndpointConnection object itself.
    • provisioningState

      public String provisioningState()
      Get the provisioningState property: One of null, "Succeeded", "Provisioning", "Failed". While not approved, it's null.
      Returns:
      the provisioningState value.
    • withProvisioningState

      public RegistryPrivateEndpointConnection withProvisioningState(String provisioningState)
      Set the provisioningState property: One of null, "Succeeded", "Provisioning", "Failed". While not approved, it's null.
      Parameters:
      provisioningState - the provisioningState value to set.
      Returns:
      the RegistryPrivateEndpointConnection object itself.
    • 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<RegistryPrivateEndpointConnection>
      Throws:
      IOException
    • fromJson

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