Compartilhar via


SharedPrivateLinkResourceProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.cdn.models.SharedPrivateLinkResourceProperties

Implements

public final class SharedPrivateLinkResourceProperties
implements JsonSerializable<SharedPrivateLinkResourceProperties>

Describes the properties of an existing Shared Private Link Resource to use when connecting to a private origin.

Constructor Summary

Constructor Description
SharedPrivateLinkResourceProperties()

Creates an instance of SharedPrivateLinkResourceProperties class.

Method Summary

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

Reads an instance of SharedPrivateLinkResourceProperties from the JsonReader.

String groupId()

Get the groupId property: The group id from the provider of resource the shared private link resource is for.

ResourceReference privateLink()

Get the privateLink property: The resource id of the resource the shared private link resource is for.

String privateLinkLocation()

Get the privateLinkLocation property: The location of the shared private link resource.

String requestMessage()

Get the requestMessage property: The request message for requesting approval of the shared private link resource.

SharedPrivateLinkResourceStatus status()

Get the status property: Status of the shared private link resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SharedPrivateLinkResourceProperties withGroupId(String groupId)

Set the groupId property: The group id from the provider of resource the shared private link resource is for.

SharedPrivateLinkResourceProperties withPrivateLink(ResourceReference privateLink)

Set the privateLink property: The resource id of the resource the shared private link resource is for.

SharedPrivateLinkResourceProperties withPrivateLinkLocation(String privateLinkLocation)

Set the privateLinkLocation property: The location of the shared private link resource.

SharedPrivateLinkResourceProperties withRequestMessage(String requestMessage)

Set the requestMessage property: The request message for requesting approval of the shared private link resource.

SharedPrivateLinkResourceProperties withStatus(SharedPrivateLinkResourceStatus status)

Set the status property: Status of the shared private link resource.

Methods inherited from java.lang.Object

Constructor Details

SharedPrivateLinkResourceProperties

public SharedPrivateLinkResourceProperties()

Creates an instance of SharedPrivateLinkResourceProperties class.

Method Details

fromJson

public static SharedPrivateLinkResourceProperties fromJson(JsonReader jsonReader)

Reads an instance of SharedPrivateLinkResourceProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SharedPrivateLinkResourceProperties 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 SharedPrivateLinkResourceProperties.

groupId

public String groupId()

Get the groupId property: The group id from the provider of resource the shared private link resource is for.

Returns:

the groupId value.

privateLink

public ResourceReference privateLink()

Get the privateLink property: The resource id of the resource the shared private link resource is for.

Returns:

the privateLink value.

privateLinkLocation

public String privateLinkLocation()

Get the privateLinkLocation property: The location of the shared private link resource.

Returns:

the privateLinkLocation value.

requestMessage

public String requestMessage()

Get the requestMessage property: The request message for requesting approval of the shared private link resource.

Returns:

the requestMessage value.

status

public SharedPrivateLinkResourceStatus status()

Get the status property: Status of the shared private link resource. Can be Pending, Approved, Rejected, Disconnected, or Timeout.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withGroupId

public SharedPrivateLinkResourceProperties withGroupId(String groupId)

Set the groupId property: The group id from the provider of resource the shared private link resource is for.

Parameters:

groupId - the groupId value to set.

Returns:

the SharedPrivateLinkResourceProperties object itself.

withPrivateLink

public SharedPrivateLinkResourceProperties withPrivateLink(ResourceReference privateLink)

Set the privateLink property: The resource id of the resource the shared private link resource is for.

Parameters:

privateLink - the privateLink value to set.

Returns:

the SharedPrivateLinkResourceProperties object itself.

withPrivateLinkLocation

public SharedPrivateLinkResourceProperties withPrivateLinkLocation(String privateLinkLocation)

Set the privateLinkLocation property: The location of the shared private link resource.

Parameters:

privateLinkLocation - the privateLinkLocation value to set.

Returns:

the SharedPrivateLinkResourceProperties object itself.

withRequestMessage

public SharedPrivateLinkResourceProperties withRequestMessage(String requestMessage)

Set the requestMessage property: The request message for requesting approval of the shared private link resource.

Parameters:

requestMessage - the requestMessage value to set.

Returns:

the SharedPrivateLinkResourceProperties object itself.

withStatus

public SharedPrivateLinkResourceProperties withStatus(SharedPrivateLinkResourceStatus status)

Set the status property: Status of the shared private link resource. Can be Pending, Approved, Rejected, Disconnected, or Timeout.

Parameters:

status - the status value to set.

Returns:

the SharedPrivateLinkResourceProperties object itself.

Applies to