Freigeben über


PrivateLinkServiceConnection Class

public final class PrivateLinkServiceConnection
extends SubResource

PrivateLinkServiceConnection resource.

Constructor Summary

Constructor Description
PrivateLinkServiceConnection()

Creates an instance of PrivateLinkServiceConnection class.

Method Summary

Modifier and Type Method and Description
String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

static PrivateLinkServiceConnection fromJson(JsonReader jsonReader)

Reads an instance of PrivateLinkServiceConnection from the JsonReader.

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.

String name()

Get the name property: The name of the resource that is unique within a resource group.

PrivateLinkServiceConnectionState privateLinkServiceConnectionState()

Get the privateLinkServiceConnectionState property: A collection of read-only information about the state of the connection to the remote resource.

String privateLinkServiceId()

Get the privateLinkServiceId property: The resource id of private link service.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the private link service connection resource.

String requestMessage()

Get the requestMessage property: A message passed to the owner of the remote resource with this connection request.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The resource type.

void validate()

Validates the instance.

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.

PrivateLinkServiceConnection withId(String id)
PrivateLinkServiceConnection withName(String name)

Set the name property: The name of the resource that is unique within a resource group.

PrivateLinkServiceConnection withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionState privateLinkServiceConnectionState)

Set the privateLinkServiceConnectionState property: A collection of read-only information about the state of the connection to the remote resource.

PrivateLinkServiceConnection withPrivateLinkServiceId(String privateLinkServiceId)

Set the privateLinkServiceId property: The resource id of private link service.

PrivateLinkServiceConnection withRequestMessage(String requestMessage)

Set the requestMessage property: A message passed to the owner of the remote resource with this connection request.

Methods inherited from SubResource

Methods inherited from java.lang.Object

Constructor Details

PrivateLinkServiceConnection

public PrivateLinkServiceConnection()

Creates an instance of PrivateLinkServiceConnection class.

Method Details

etag

public String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

Returns:

the etag value.

fromJson

public static PrivateLinkServiceConnection fromJson(JsonReader jsonReader)

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.

groupIds

public List 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.

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.

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.

privateLinkServiceId

public String privateLinkServiceId()

Get the privateLinkServiceId property: The resource id of private link service.

Returns:

the privateLinkServiceId value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the private link service connection resource.

Returns:

the provisioningState value.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

PrivateLinkServiceConnection.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The resource type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withGroupIds

public PrivateLinkServiceConnection withGroupIds(List 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.

withId

public PrivateLinkServiceConnection withId(String id)

Overrides:

PrivateLinkServiceConnection.withId(String id)

Parameters:

id

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.

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.

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.

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.

Applies to