ShareablePrivateLinkResourceType Class

  • java.lang.Object
    • com.azure.resourcemanager.webpubsub.models.ShareablePrivateLinkResourceType

Implements

public final class ShareablePrivateLinkResourceType
implements JsonSerializable<ShareablePrivateLinkResourceType>

Describes a resource type that has been onboarded to private link service.

Constructor Summary

Constructor Description
ShareablePrivateLinkResourceType()

Creates an instance of ShareablePrivateLinkResourceType class.

Method Summary

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

Reads an instance of ShareablePrivateLinkResourceType from the JsonReader.

String name()

Get the name property: The name of the resource type that has been onboarded to private link service.

ShareablePrivateLinkResourceProperties properties()

Get the properties property: Describes the properties of a resource type that has been onboarded to private link service.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ShareablePrivateLinkResourceType withName(String name)

Set the name property: The name of the resource type that has been onboarded to private link service.

ShareablePrivateLinkResourceType withProperties(ShareablePrivateLinkResourceProperties properties)

Set the properties property: Describes the properties of a resource type that has been onboarded to private link service.

Methods inherited from java.lang.Object

Constructor Details

ShareablePrivateLinkResourceType

public ShareablePrivateLinkResourceType()

Creates an instance of ShareablePrivateLinkResourceType class.

Method Details

fromJson

public static ShareablePrivateLinkResourceType fromJson(JsonReader jsonReader)

Reads an instance of ShareablePrivateLinkResourceType from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The name of the resource type that has been onboarded to private link service.

Returns:

the name value.

properties

public ShareablePrivateLinkResourceProperties properties()

Get the properties property: Describes the properties of a resource type that has been onboarded to private link service.

Returns:

the properties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withName

public ShareablePrivateLinkResourceType withName(String name)

Set the name property: The name of the resource type that has been onboarded to private link service.

Parameters:

name - the name value to set.

Returns:

the ShareablePrivateLinkResourceType object itself.

withProperties

public ShareablePrivateLinkResourceType withProperties(ShareablePrivateLinkResourceProperties properties)

Set the properties property: Describes the properties of a resource type that has been onboarded to private link service.

Parameters:

properties - the properties value to set.

Returns:

the ShareablePrivateLinkResourceType object itself.

Applies to