CustomModelJobInput Class

public final class CustomModelJobInput
extends JobInput

The CustomModelJobInput model.

Constructor Summary

Constructor Description
CustomModelJobInput()

Creates an instance of CustomModelJobInput class.

Method Summary

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

Reads an instance of CustomModelJobInput from the JsonReader.

JobInputType jobInputType()

Get the jobInputType property: [Required] Specifies the type of job.

InputDeliveryMode mode()

Get the mode property: Input Asset Delivery Mode.

JsonWriter toJson(JsonWriter jsonWriter)
String uri()

Get the uri property: [Required] Input Asset URI.

void validate()

Validates the instance.

CustomModelJobInput withDescription(String description)

Set the description property: Description for the input.

CustomModelJobInput withMode(InputDeliveryMode mode)

Set the mode property: Input Asset Delivery Mode.

CustomModelJobInput withUri(String uri)

Set the uri property: [Required] Input Asset URI.

Methods inherited from JobInput

Methods inherited from java.lang.Object

Constructor Details

CustomModelJobInput

public CustomModelJobInput()

Creates an instance of CustomModelJobInput class.

Method Details

fromJson

public static CustomModelJobInput fromJson(JsonReader jsonReader)

Reads an instance of CustomModelJobInput from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

jobInputType

public JobInputType jobInputType()

Get the jobInputType property: [Required] Specifies the type of job.

Overrides:

CustomModelJobInput.jobInputType()

Returns:

the jobInputType value.

mode

public InputDeliveryMode mode()

Get the mode property: Input Asset Delivery Mode.

Returns:

the mode value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

CustomModelJobInput.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

uri

public String uri()

Get the uri property: [Required] Input Asset URI.

Returns:

the uri value.

validate

public void validate()

Validates the instance.

Overrides:

CustomModelJobInput.validate()

withDescription

public CustomModelJobInput withDescription(String description)

Set the description property: Description for the input.

Overrides:

CustomModelJobInput.withDescription(String description)

Parameters:

description

withMode

public CustomModelJobInput withMode(InputDeliveryMode mode)

Set the mode property: Input Asset Delivery Mode.

Parameters:

mode - the mode value to set.

Returns:

the CustomModelJobInput object itself.

withUri

public CustomModelJobInput withUri(String uri)

Set the uri property: [Required] Input Asset URI.

Parameters:

uri - the uri value to set.

Returns:

the CustomModelJobInput object itself.

Applies to