Class PrivateLinkServiceConnection
java.lang.Object
com.azure.core.management.SubResource
com.azure.resourcemanager.network.models.PrivateLinkServiceConnection
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.SubResource>
public final class PrivateLinkServiceConnection
extends com.azure.core.management.SubResource
PrivateLinkServiceConnection resource.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of PrivateLinkServiceConnection class. -
Method Summary
Modifier and TypeMethodDescriptionetag()Get the etag property: A unique read-only string that changes whenever the resource is updated.static PrivateLinkServiceConnectionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PrivateLinkServiceConnection from the JsonReader.groupIds()Get the groupIds property: The ID(s) of the group(s) obtained from the remote resource that this private endpoint should connect to.name()Get the name property: The name of the resource that is unique within a resource group.Get the privateLinkServiceConnectionState property: A collection of read-only information about the state of the connection to the remote resource.Get the privateLinkServiceId property: The resource id of private link service.Get the provisioningState property: The provisioning state of the private link service connection resource.Get the requestMessage property: A message passed to the owner of the remote resource with this connection request.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The resource type.voidvalidate()Validates the instance.withGroupIds(List<String> groupIds) Set the groupIds property: The ID(s) of the group(s) obtained from the remote resource that this private endpoint should connect to.Set the name property: The name of the resource that is unique within a resource group.withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionState privateLinkServiceConnectionState) Set the privateLinkServiceConnectionState property: A collection of read-only information about the state of the connection to the remote resource.withPrivateLinkServiceId(String privateLinkServiceId) Set the privateLinkServiceId property: The resource id of private link service.withRequestMessage(String requestMessage) Set the requestMessage property: A message passed to the owner of the remote resource with this connection request.Methods inherited from class com.azure.core.management.SubResource
idMethods 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
-
PrivateLinkServiceConnection
public PrivateLinkServiceConnection()Creates an instance of PrivateLinkServiceConnection class.
-
-
Method Details
-
name
Get the name property: The name of the resource that is unique within a resource group. This name can be used to access the resource.- Returns:
- the name value.
-
withName
Set the name property: The name of the resource that is unique within a resource group. This name can be used to access the resource.- Parameters:
name- the name value to set.- Returns:
- the PrivateLinkServiceConnection object itself.
-
type
Get the type property: The resource type.- Returns:
- the type value.
-
etag
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
withId
- Overrides:
withIdin classcom.azure.core.management.SubResource
-
provisioningState
Get the provisioningState property: The provisioning state of the private link service connection resource.- Returns:
- the provisioningState value.
-
privateLinkServiceId
Get the privateLinkServiceId property: The resource id of private link service.- Returns:
- the privateLinkServiceId value.
-
withPrivateLinkServiceId
Set the privateLinkServiceId property: The resource id of private link service.- Parameters:
privateLinkServiceId- the privateLinkServiceId value to set.- Returns:
- the PrivateLinkServiceConnection object itself.
-
groupIds
Get the groupIds property: The ID(s) of the group(s) obtained from the remote resource that this private endpoint should connect to.- Returns:
- the groupIds value.
-
withGroupIds
Set the groupIds property: The ID(s) of the group(s) obtained from the remote resource that this private endpoint should connect to.- Parameters:
groupIds- the groupIds value to set.- Returns:
- the PrivateLinkServiceConnection object itself.
-
requestMessage
Get the requestMessage property: A message passed to the owner of the remote resource with this connection request. Restricted to 140 chars.- Returns:
- the requestMessage value.
-
withRequestMessage
Set the requestMessage property: A message passed to the owner of the remote resource with this connection request. Restricted to 140 chars.- Parameters:
requestMessage- the requestMessage value to set.- Returns:
- the PrivateLinkServiceConnection object itself.
-
privateLinkServiceConnectionState
Get the privateLinkServiceConnectionState property: A collection of read-only information about the state of the connection to the remote resource.- Returns:
- the privateLinkServiceConnectionState value.
-
withPrivateLinkServiceConnectionState
public PrivateLinkServiceConnection withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionState privateLinkServiceConnectionState) Set the privateLinkServiceConnectionState property: A collection of read-only information about the state of the connection to the remote resource.- Parameters:
privateLinkServiceConnectionState- the privateLinkServiceConnectionState value to set.- Returns:
- the PrivateLinkServiceConnection 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<com.azure.core.management.SubResource>- Overrides:
toJsonin classcom.azure.core.management.SubResource- Throws:
IOException
-
fromJson
public static PrivateLinkServiceConnection fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of PrivateLinkServiceConnection from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PrivateLinkServiceConnection 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 PrivateLinkServiceConnection.
-