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 Summary
ConstructorsConstructorDescriptionCreates an instance of RegistryPrivateEndpointConnection class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RegistryPrivateEndpointConnection from the JsonReader.groupIds()Get the groupIds property: The group ids.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}.location()Get the location property: Same as workspace location.Get the privateEndpoint property: The PE network resource that is linked to this PE connection.Get the provisioningState property: One of null, "Succeeded", "Provisioning", "Failed".Get the registryPrivateLinkServiceConnectionState property: The connection state.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withGroupIds(List<String> groupIds) Set the groupIds property: The group ids.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}.withLocation(String location) Set the location property: Same as workspace location.withPrivateEndpoint(PrivateEndpointResource privateEndpoint) Set the privateEndpoint property: The PE network resource that is linked to this PE connection.withProvisioningState(String provisioningState) Set the provisioningState property: One of null, "Succeeded", "Provisioning", "Failed".withRegistryPrivateLinkServiceConnectionState(RegistryPrivateLinkServiceConnectionState registryPrivateLinkServiceConnectionState) Set the registryPrivateLinkServiceConnectionState property: The connection state.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
-
RegistryPrivateEndpointConnection
public RegistryPrivateEndpointConnection()Creates an instance of RegistryPrivateEndpointConnection class.
-
-
Method Details
-
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
Get the location property: Same as workspace location.- Returns:
- the location value.
-
withLocation
Set the location property: Same as workspace location.- Parameters:
location- the location value to set.- Returns:
- the RegistryPrivateEndpointConnection object itself.
-
groupIds
Get the groupIds property: The group ids.- Returns:
- the groupIds value.
-
withGroupIds
Set the groupIds property: The group ids.- Parameters:
groupIds- the groupIds value to set.- Returns:
- the RegistryPrivateEndpointConnection object itself.
-
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
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
Get the provisioningState property: One of null, "Succeeded", "Provisioning", "Failed". While not approved, it's null.- Returns:
- the provisioningState value.
-
withProvisioningState
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
- Specified by:
toJsonin interfacecom.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.
-