RunRequest.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.containerregistry.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
/** The request parameters for scheduling a run. */
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.PROPERTY,
property = "type",
defaultImpl = RunRequest.class)
@JsonTypeName("RunRequest")
@JsonSubTypes({
@JsonSubTypes.Type(name = "DockerBuildRequest", value = DockerBuildRequest.class),
@JsonSubTypes.Type(name = "FileTaskRunRequest", value = FileTaskRunRequest.class),
@JsonSubTypes.Type(name = "TaskRunRequest", value = TaskRunRequest.class),
@JsonSubTypes.Type(name = "EncodedTaskRunRequest", value = EncodedTaskRunRequest.class)
})
@Fluent
public class RunRequest {
@JsonIgnore private final ClientLogger logger = new ClientLogger(RunRequest.class);
/*
* The value that indicates whether archiving is enabled for the run or
* not.
*/
@JsonProperty(value = "isArchiveEnabled")
private Boolean isArchiveEnabled;
/**
* Get the isArchiveEnabled property: The value that indicates whether archiving is enabled for the run or not.
*
* @return the isArchiveEnabled value.
*/
public Boolean isArchiveEnabled() {
return this.isArchiveEnabled;
}
/**
* Set the isArchiveEnabled property: The value that indicates whether archiving is enabled for the run or not.
*
* @param isArchiveEnabled the isArchiveEnabled value to set.
* @return the RunRequest object itself.
*/
public RunRequest withIsArchiveEnabled(Boolean isArchiveEnabled) {
this.isArchiveEnabled = isArchiveEnabled;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}