PrivateLinkResourceInner Class

public final class PrivateLinkResourceInner
extends Resource

A private link resource that enables secure, private connectivity to Microsoft Defender for Cloud services. This resource manages the lifecycle of private endpoint connections and provides the necessary infrastructure for private connectivity.

Constructor Summary

Constructor Description
PrivateLinkResourceInner()

Creates an instance of PrivateLinkResourceInner class.

Method Summary

Modifier and Type Method and Description
static PrivateLinkResourceInner fromJson(JsonReader jsonReader)

Reads an instance of PrivateLinkResourceInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

List<PrivateEndpointConnectionInner> privateEndpointConnections()

Get the privateEndpointConnections property: List of private endpoint connections associated with this private link.

List<PrivateLinkGroupResourceInner> privateLinkResources()

Get the privateLinkResources property: List of private link resources available for connection.

ProvisioningState provisioningState()

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

PublicNetworkAccess publicNetworkAccess()

Get the publicNetworkAccess property: This determines if traffic is allowed over public network.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

PrivateLinkResourceInner withLocation(String location)
PrivateLinkResourceInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)

Set the publicNetworkAccess property: This determines if traffic is allowed over public network.

PrivateLinkResourceInner withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

PrivateLinkResourceInner

public PrivateLinkResourceInner()

Creates an instance of PrivateLinkResourceInner class.

Method Details

fromJson

public static PrivateLinkResourceInner fromJson(JsonReader jsonReader)

Reads an instance of PrivateLinkResourceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PrivateLinkResourceInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

PrivateLinkResourceInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

PrivateLinkResourceInner.name()

Returns:

the name value.

privateEndpointConnections

public List<PrivateEndpointConnectionInner> privateEndpointConnections()

Get the privateEndpointConnections property: List of private endpoint connections associated with this private link. Each connection represents a private endpoint from a customer's virtual network.

Returns:

the privateEndpointConnections value.

privateLinkResources

public List<PrivateLinkGroupResourceInner> privateLinkResources()

Get the privateLinkResources property: List of private link resources available for connection. For Defender services, this typically includes the 'containers' group with 'api' and regional data endpoints.

Returns:

the privateLinkResources value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The current provisioning state of the private link resource. Indicates whether the resource is being created, updated, deleted, or has completed successfully.

Returns:

the provisioningState value.

publicNetworkAccess

public PublicNetworkAccess publicNetworkAccess()

Get the publicNetworkAccess property: This determines if traffic is allowed over public network. By default it is disabled.

Returns:

the publicNetworkAccess value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

PrivateLinkResourceInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

PrivateLinkResourceInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withLocation

public PrivateLinkResourceInner withLocation(String location)

Overrides:

PrivateLinkResourceInner.withLocation(String location)

Parameters:

location

withPublicNetworkAccess

public PrivateLinkResourceInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)

Set the publicNetworkAccess property: This determines if traffic is allowed over public network. By default it is disabled.

Parameters:

publicNetworkAccess - the publicNetworkAccess value to set.

Returns:

the PrivateLinkResourceInner object itself.

withTags

public PrivateLinkResourceInner withTags(Map<String,String> tags)

Overrides:

PrivateLinkResourceInner.withTags(Map<String,String> tags)

Parameters:

tags

Applies to