다음을 통해 공유


ResourceUploadDefinition Class

  • java.lang.Object
    • com.azure.resourcemanager.appplatform.models.ResourceUploadDefinition

Implements

public final class ResourceUploadDefinition
implements JsonSerializable<ResourceUploadDefinition>

Resource upload definition payload.

Constructor Summary

Constructor Description
ResourceUploadDefinition()

Creates an instance of ResourceUploadDefinition class.

Method Summary

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

Reads an instance of ResourceUploadDefinition from the JsonReader.

String relativePath()

Get the relativePath property: Source relative path.

JsonWriter toJson(JsonWriter jsonWriter)
String uploadUrl()

Get the uploadUrl property: Upload URL.

void validate()

Validates the instance.

ResourceUploadDefinition withRelativePath(String relativePath)

Set the relativePath property: Source relative path.

ResourceUploadDefinition withUploadUrl(String uploadUrl)

Set the uploadUrl property: Upload URL.

Methods inherited from java.lang.Object

Constructor Details

ResourceUploadDefinition

public ResourceUploadDefinition()

Creates an instance of ResourceUploadDefinition class.

Method Details

fromJson

public static ResourceUploadDefinition fromJson(JsonReader jsonReader)

Reads an instance of ResourceUploadDefinition from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

relativePath

public String relativePath()

Get the relativePath property: Source relative path.

Returns:

the relativePath value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

uploadUrl

public String uploadUrl()

Get the uploadUrl property: Upload URL.

Returns:

the uploadUrl value.

validate

public void validate()

Validates the instance.

withRelativePath

public ResourceUploadDefinition withRelativePath(String relativePath)

Set the relativePath property: Source relative path.

Parameters:

relativePath - the relativePath value to set.

Returns:

the ResourceUploadDefinition object itself.

withUploadUrl

public ResourceUploadDefinition withUploadUrl(String uploadUrl)

Set the uploadUrl property: Upload URL.

Parameters:

uploadUrl - the uploadUrl value to set.

Returns:

the ResourceUploadDefinition object itself.

Applies to