EntityReference Class

  • java.lang.Object
    • com.azure.resourcemanager.synapse.models.EntityReference

Implements

public final class EntityReference
implements JsonSerializable<EntityReference>

The entity reference.

Constructor Summary

Constructor Description
EntityReference()

Creates an instance of EntityReference class.

Method Summary

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

Reads an instance of EntityReference from the JsonReader.

String referenceName()

Get the referenceName property: The name of this referenced entity.

JsonWriter toJson(JsonWriter jsonWriter)
IntegrationRuntimeEntityReferenceType type()

Get the type property: The type of this referenced entity.

void validate()

Validates the instance.

EntityReference withReferenceName(String referenceName)

Set the referenceName property: The name of this referenced entity.

EntityReference withType(IntegrationRuntimeEntityReferenceType type)

Set the type property: The type of this referenced entity.

Methods inherited from java.lang.Object

Constructor Details

EntityReference

public EntityReference()

Creates an instance of EntityReference class.

Method Details

fromJson

public static EntityReference fromJson(JsonReader jsonReader)

Reads an instance of EntityReference from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

referenceName

public String referenceName()

Get the referenceName property: The name of this referenced entity.

Returns:

the referenceName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public IntegrationRuntimeEntityReferenceType type()

Get the type property: The type of this referenced entity.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withReferenceName

public EntityReference withReferenceName(String referenceName)

Set the referenceName property: The name of this referenced entity.

Parameters:

referenceName - the referenceName value to set.

Returns:

the EntityReference object itself.

withType

public EntityReference withType(IntegrationRuntimeEntityReferenceType type)

Set the type property: The type of this referenced entity.

Parameters:

type - the type value to set.

Returns:

the EntityReference object itself.

Applies to