Class PrivateLinkServiceConnection
- java.lang.Object
-
- com.azure.core.management.SubResource
-
- com.azure.resourcemanager.network.models.PrivateLinkServiceConnection
-
public final class PrivateLinkServiceConnection extends com.azure.core.management.SubResourcePrivateLinkServiceConnection resource.
-
-
Constructor Summary
Constructors Constructor Description PrivateLinkServiceConnection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringetag()Get the etag property: A unique read-only string that changes whenever the resource is updated.List<String>groupIds()Get the groupIds property: The ID(s) of the group(s) obtained from the remote resource that this private endpoint should connect to.Stringname()Get the name property: The name of the resource that is unique within a resource group.PrivateLinkServiceConnectionStateprivateLinkServiceConnectionState()Get the privateLinkServiceConnectionState property: A collection of read-only information about the state of the connection to the remote resource.StringprivateLinkServiceId()Get the privateLinkServiceId property: The resource id of private link service.ProvisioningStateprovisioningState()Get the provisioningState property: The provisioning state of the private link service connection resource.StringrequestMessage()Get the requestMessage property: A message passed to the owner of the remote resource with this connection request.Stringtype()Get the type property: The resource type.voidvalidate()Validates the instance.PrivateLinkServiceConnectionwithGroupIds(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.PrivateLinkServiceConnectionwithId(String id)PrivateLinkServiceConnectionwithName(String name)Set the name property: The name of the resource that is unique within a resource group.PrivateLinkServiceConnectionwithPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionState privateLinkServiceConnectionState)Set the privateLinkServiceConnectionState property: A collection of read-only information about the state of the connection to the remote resource.PrivateLinkServiceConnectionwithPrivateLinkServiceId(String privateLinkServiceId)Set the privateLinkServiceId property: The resource id of private link service.PrivateLinkServiceConnectionwithRequestMessage(String requestMessage)Set the requestMessage property: A message passed to the owner of the remote resource with this connection request.
-
-
-
Method Detail
-
name
public String 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
public PrivateLinkServiceConnection withName(String name)
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
public String type()
Get the type property: The resource type.- Returns:
- the type value.
-
etag
public String etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
withId
public PrivateLinkServiceConnection withId(String id)
- Overrides:
withIdin classcom.azure.core.management.SubResource
-
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the private link service connection resource.- Returns:
- the provisioningState value.
-
privateLinkServiceId
public String privateLinkServiceId()
Get the privateLinkServiceId property: The resource id of private link service.- Returns:
- the privateLinkServiceId value.
-
withPrivateLinkServiceId
public PrivateLinkServiceConnection withPrivateLinkServiceId(String privateLinkServiceId)
Set the privateLinkServiceId property: The resource id of private link service.- Parameters:
privateLinkServiceId- the privateLinkServiceId value to set.- Returns:
- the PrivateLinkServiceConnection object itself.
-
groupIds
public List<String> 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
public PrivateLinkServiceConnection 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.- Parameters:
groupIds- the groupIds value to set.- Returns:
- the PrivateLinkServiceConnection object itself.
-
requestMessage
public String 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
public PrivateLinkServiceConnection withRequestMessage(String requestMessage)
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
public PrivateLinkServiceConnectionState 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.
-
-