SourceUploadDefinitionInner Class

  • java.lang.Object
    • com.azure.resourcemanager.containerregistry.fluent.models.SourceUploadDefinitionInner

Implements

public final class SourceUploadDefinitionInner
implements JsonSerializable<SourceUploadDefinitionInner>

The properties of a response to source upload request.

Constructor Summary

Constructor Description
SourceUploadDefinitionInner()

Creates an instance of SourceUploadDefinitionInner class.

Method Summary

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

Reads an instance of SourceUploadDefinitionInner from the JsonReader.

String relativePath()

Get the relativePath property: The relative path to the source.

JsonWriter toJson(JsonWriter jsonWriter)
String uploadUrl()

Get the uploadUrl property: The URL where the client can upload the source.

void validate()

Validates the instance.

SourceUploadDefinitionInner withRelativePath(String relativePath)

Set the relativePath property: The relative path to the source.

SourceUploadDefinitionInner withUploadUrl(String uploadUrl)

Set the uploadUrl property: The URL where the client can upload the source.

Methods inherited from java.lang.Object

Constructor Details

SourceUploadDefinitionInner

public SourceUploadDefinitionInner()

Creates an instance of SourceUploadDefinitionInner class.

Method Details

fromJson

public static SourceUploadDefinitionInner fromJson(JsonReader jsonReader)

Reads an instance of SourceUploadDefinitionInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

relativePath

public String relativePath()

Get the relativePath property: The relative path to the source. This is used to submit the subsequent queue build request.

Returns:

the relativePath value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

uploadUrl

public String uploadUrl()

Get the uploadUrl property: The URL where the client can upload the source.

Returns:

the uploadUrl value.

validate

public void validate()

Validates the instance.

withRelativePath

public SourceUploadDefinitionInner withRelativePath(String relativePath)

Set the relativePath property: The relative path to the source. This is used to submit the subsequent queue build request.

Parameters:

relativePath - the relativePath value to set.

Returns:

the SourceUploadDefinitionInner object itself.

withUploadUrl

public SourceUploadDefinitionInner withUploadUrl(String uploadUrl)

Set the uploadUrl property: The URL where the client can upload the source.

Parameters:

uploadUrl - the uploadUrl value to set.

Returns:

the SourceUploadDefinitionInner object itself.

Applies to