RunRequest Class

  • java.lang.Object
    • com.azure.resourcemanager.containerregistry.models.RunRequest

Implements

public class RunRequest
implements JsonSerializable<RunRequest>

The request parameters for scheduling a run.

Constructor Summary

Constructor Description
RunRequest()

Creates an instance of RunRequest class.

Method Summary

Modifier and Type Method and Description
String agentPoolName()

Get the agentPoolName property: The dedicated agent pool for the run.

static RunRequest fromJson(JsonReader jsonReader)

Reads an instance of RunRequest from the JsonReader.

Boolean isArchiveEnabled()

Get the isArchiveEnabled property: The value that indicates whether archiving is enabled for the run or not.

String logTemplate()

Get the logTemplate property: The template that describes the repository and tag information for run log artifact.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the run request.

void validate()

Validates the instance.

RunRequest withAgentPoolName(String agentPoolName)

Set the agentPoolName property: The dedicated agent pool for the run.

RunRequest withIsArchiveEnabled(Boolean isArchiveEnabled)

Set the isArchiveEnabled property: The value that indicates whether archiving is enabled for the run or not.

RunRequest withLogTemplate(String logTemplate)

Set the logTemplate property: The template that describes the repository and tag information for run log artifact.

Methods inherited from java.lang.Object

Constructor Details

RunRequest

public RunRequest()

Creates an instance of RunRequest class.

Method Details

agentPoolName

public String agentPoolName()

Get the agentPoolName property: The dedicated agent pool for the run.

Returns:

the agentPoolName value.

fromJson

public static RunRequest fromJson(JsonReader jsonReader)

Reads an instance of RunRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

isArchiveEnabled

public Boolean isArchiveEnabled()

Get the isArchiveEnabled property: The value that indicates whether archiving is enabled for the run or not.

Returns:

the isArchiveEnabled value.

logTemplate

public String logTemplate()

Get the logTemplate property: The template that describes the repository and tag information for run log artifact.

Returns:

the logTemplate value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the run request.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withAgentPoolName

public RunRequest withAgentPoolName(String agentPoolName)

Set the agentPoolName property: The dedicated agent pool for the run.

Parameters:

agentPoolName - the agentPoolName value to set.

Returns:

the RunRequest object itself.

withIsArchiveEnabled

public RunRequest withIsArchiveEnabled(Boolean isArchiveEnabled)

Set the isArchiveEnabled property: The value that indicates whether archiving is enabled for the run or not.

Parameters:

isArchiveEnabled - the isArchiveEnabled value to set.

Returns:

the RunRequest object itself.

withLogTemplate

public RunRequest withLogTemplate(String logTemplate)

Set the logTemplate property: The template that describes the repository and tag information for run log artifact.

Parameters:

logTemplate - the logTemplate value to set.

Returns:

the RunRequest object itself.

Applies to