Freigeben über


CopyAuthorization Class

  • java.lang.Object
    • com.azure.ai.contentunderstanding.models.CopyAuthorization

Implements

public final class CopyAuthorization
implements JsonSerializable<CopyAuthorization>

Copy authorization details for cross-resource copy.

Method Summary

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

Reads an instance of CopyAuthorization from the JsonReader.

OffsetDateTime getExpiresAt()

Get the expiresAt property: Date/time when the copy authorization expires.

String getSource()

Get the source property: Full path of the source analyzer.

String getTargetAzureResourceId()

Get the targetAzureResourceId property: Azure resource ID of the target location to copy to.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static CopyAuthorization fromJson(JsonReader jsonReader)

Reads an instance of CopyAuthorization from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getExpiresAt

public OffsetDateTime getExpiresAt()

Get the expiresAt property: Date/time when the copy authorization expires.

Returns:

the expiresAt value.

getSource

public String getSource()

Get the source property: Full path of the source analyzer.

Returns:

the source value.

getTargetAzureResourceId

public String getTargetAzureResourceId()

Get the targetAzureResourceId property: Azure resource ID of the target location to copy to.

Returns:

the targetAzureResourceId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to