SharedPrivateLinkResourceInner Class

public final class SharedPrivateLinkResourceInner
extends ProxyResource

Describes a Shared Private Link Resource.

Constructor Summary

Constructor Description
SharedPrivateLinkResourceInner()

Creates an instance of SharedPrivateLinkResourceInner class.

Method Summary

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

Reads an instance of SharedPrivateLinkResourceInner from the JsonReader.

String groupId()

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

String id()

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

String name()

Get the name property: The name of the resource.

String privateLinkResourceId()

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

ProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the 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.

SystemData systemData()

Get the systemData property: Metadata pertaining to creation and last modification of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

SharedPrivateLinkResourceInner withGroupId(String groupId)

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

SharedPrivateLinkResourceInner withPrivateLinkResourceId(String privateLinkResourceId)

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

SharedPrivateLinkResourceInner withRequestMessage(String requestMessage)

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

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

SharedPrivateLinkResourceInner

public SharedPrivateLinkResourceInner()

Creates an instance of SharedPrivateLinkResourceInner class.

Method Details

fromJson

public static SharedPrivateLinkResourceInner fromJson(JsonReader jsonReader)

Reads an instance of SharedPrivateLinkResourceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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.

id

public String id()

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

Overrides:

SharedPrivateLinkResourceInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

SharedPrivateLinkResourceInner.name()

Returns:

the name value.

privateLinkResourceId

public String privateLinkResourceId()

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

Returns:

the privateLinkResourceId value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the resource.

Returns:

the provisioningState 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.

Returns:

the status value.

systemData

public SystemData systemData()

Get the systemData property: Metadata pertaining to creation and last modification of the resource.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

SharedPrivateLinkResourceInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

SharedPrivateLinkResourceInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withGroupId

public SharedPrivateLinkResourceInner 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 SharedPrivateLinkResourceInner object itself.

withPrivateLinkResourceId

public SharedPrivateLinkResourceInner withPrivateLinkResourceId(String privateLinkResourceId)

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

Parameters:

privateLinkResourceId - the privateLinkResourceId value to set.

Returns:

the SharedPrivateLinkResourceInner object itself.

withRequestMessage

public SharedPrivateLinkResourceInner 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 SharedPrivateLinkResourceInner object itself.

Applies to