Class RunInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.containerregistry.fluent.models.RunInner
-
public final class RunInner extends com.azure.core.management.ProxyResourceRun resource properties.
-
-
Constructor Summary
Constructors Constructor Description RunInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgentPropertiesagentConfiguration()Get the agentConfiguration property: The machine configuration of the run agent.StringagentPoolName()Get the agentPoolName property: The dedicated agent pool for the run.OffsetDateTimecreateTime()Get the createTime property: The time the run was scheduled.List<String>customRegistries()Get the customRegistries property: The list of custom registries that were logged in during this run.OffsetDateTimefinishTime()Get the finishTime property: The time the run finished.ImageUpdateTriggerimageUpdateTrigger()Get the imageUpdateTrigger property: The image update trigger that caused the run.BooleanisArchiveEnabled()Get the isArchiveEnabled property: The value that indicates whether archiving is enabled or not.OffsetDateTimelastUpdatedTime()Get the lastUpdatedTime property: The last updated time for the run.ImageDescriptorlogArtifact()Get the logArtifact property: The image description for the log artifact.List<ImageDescriptor>outputImages()Get the outputImages property: The list of all images that were generated from the run.PlatformPropertiesplatform()Get the platform property: The platform properties against which the run will happen.ProvisioningStateprovisioningState()Get the provisioningState property: The provisioning state of a run.StringrunErrorMessage()Get the runErrorMessage property: The error message received from backend systems after the run is scheduled.StringrunId()Get the runId property: The unique identifier for the run.RunTyperunType()Get the runType property: The type of run.StringsourceRegistryAuth()Get the sourceRegistryAuth property: The scope of the credentials that were used to login to the source registry during this run.SourceTriggerDescriptorsourceTrigger()Get the sourceTrigger property: The source trigger that caused the run.OffsetDateTimestartTime()Get the startTime property: The time the run started.RunStatusstatus()Get the status property: The current status of the run.com.azure.core.management.SystemDatasystemData()Get the systemData property: Metadata pertaining to creation and last modification of the resource.Stringtask()Get the task property: The task against which run was scheduled.TimerTriggerDescriptortimerTrigger()Get the timerTrigger property: The timer trigger that caused the run.StringupdateTriggerToken()Get the updateTriggerToken property: The update trigger token passed for the Run.voidvalidate()Validates the instance.RunInnerwithAgentConfiguration(AgentProperties agentConfiguration)Set the agentConfiguration property: The machine configuration of the run agent.RunInnerwithAgentPoolName(String agentPoolName)Set the agentPoolName property: The dedicated agent pool for the run.RunInnerwithCreateTime(OffsetDateTime createTime)Set the createTime property: The time the run was scheduled.RunInnerwithCustomRegistries(List<String> customRegistries)Set the customRegistries property: The list of custom registries that were logged in during this run.RunInnerwithFinishTime(OffsetDateTime finishTime)Set the finishTime property: The time the run finished.RunInnerwithImageUpdateTrigger(ImageUpdateTrigger imageUpdateTrigger)Set the imageUpdateTrigger property: The image update trigger that caused the run.RunInnerwithIsArchiveEnabled(Boolean isArchiveEnabled)Set the isArchiveEnabled property: The value that indicates whether archiving is enabled or not.RunInnerwithLastUpdatedTime(OffsetDateTime lastUpdatedTime)Set the lastUpdatedTime property: The last updated time for the run.RunInnerwithOutputImages(List<ImageDescriptor> outputImages)Set the outputImages property: The list of all images that were generated from the run.RunInnerwithPlatform(PlatformProperties platform)Set the platform property: The platform properties against which the run will happen.RunInnerwithProvisioningState(ProvisioningState provisioningState)Set the provisioningState property: The provisioning state of a run.RunInnerwithRunId(String runId)Set the runId property: The unique identifier for the run.RunInnerwithRunType(RunType runType)Set the runType property: The type of run.RunInnerwithSourceRegistryAuth(String sourceRegistryAuth)Set the sourceRegistryAuth property: The scope of the credentials that were used to login to the source registry during this run.RunInnerwithSourceTrigger(SourceTriggerDescriptor sourceTrigger)Set the sourceTrigger property: The source trigger that caused the run.RunInnerwithStartTime(OffsetDateTime startTime)Set the startTime property: The time the run started.RunInnerwithStatus(RunStatus status)Set the status property: The current status of the run.RunInnerwithTask(String task)Set the task property: The task against which run was scheduled.RunInnerwithTimerTrigger(TimerTriggerDescriptor timerTrigger)Set the timerTrigger property: The timer trigger that caused the run.RunInnerwithUpdateTriggerToken(String updateTriggerToken)Set the updateTriggerToken property: The update trigger token passed for the Run.
-
-
-
Method Detail
-
systemData
public com.azure.core.management.SystemData systemData()
Get the systemData property: Metadata pertaining to creation and last modification of the resource.- Returns:
- the systemData value.
-
runId
public String runId()
Get the runId property: The unique identifier for the run.- Returns:
- the runId value.
-
withRunId
public RunInner withRunId(String runId)
Set the runId property: The unique identifier for the run.- Parameters:
runId- the runId value to set.- Returns:
- the RunInner object itself.
-
status
public RunStatus status()
Get the status property: The current status of the run.- Returns:
- the status value.
-
withStatus
public RunInner withStatus(RunStatus status)
Set the status property: The current status of the run.- Parameters:
status- the status value to set.- Returns:
- the RunInner object itself.
-
lastUpdatedTime
public OffsetDateTime lastUpdatedTime()
Get the lastUpdatedTime property: The last updated time for the run.- Returns:
- the lastUpdatedTime value.
-
withLastUpdatedTime
public RunInner withLastUpdatedTime(OffsetDateTime lastUpdatedTime)
Set the lastUpdatedTime property: The last updated time for the run.- Parameters:
lastUpdatedTime- the lastUpdatedTime value to set.- Returns:
- the RunInner object itself.
-
runType
public RunType runType()
Get the runType property: The type of run.- Returns:
- the runType value.
-
withRunType
public RunInner withRunType(RunType runType)
Set the runType property: The type of run.- Parameters:
runType- the runType value to set.- Returns:
- the RunInner object itself.
-
agentPoolName
public String agentPoolName()
Get the agentPoolName property: The dedicated agent pool for the run.- Returns:
- the agentPoolName value.
-
withAgentPoolName
public RunInner withAgentPoolName(String agentPoolName)
Set the agentPoolName property: The dedicated agent pool for the run.- Parameters:
agentPoolName- the agentPoolName value to set.- Returns:
- the RunInner object itself.
-
createTime
public OffsetDateTime createTime()
Get the createTime property: The time the run was scheduled.- Returns:
- the createTime value.
-
withCreateTime
public RunInner withCreateTime(OffsetDateTime createTime)
Set the createTime property: The time the run was scheduled.- Parameters:
createTime- the createTime value to set.- Returns:
- the RunInner object itself.
-
startTime
public OffsetDateTime startTime()
Get the startTime property: The time the run started.- Returns:
- the startTime value.
-
withStartTime
public RunInner withStartTime(OffsetDateTime startTime)
Set the startTime property: The time the run started.- Parameters:
startTime- the startTime value to set.- Returns:
- the RunInner object itself.
-
finishTime
public OffsetDateTime finishTime()
Get the finishTime property: The time the run finished.- Returns:
- the finishTime value.
-
withFinishTime
public RunInner withFinishTime(OffsetDateTime finishTime)
Set the finishTime property: The time the run finished.- Parameters:
finishTime- the finishTime value to set.- Returns:
- the RunInner object itself.
-
outputImages
public List<ImageDescriptor> outputImages()
Get the outputImages property: The list of all images that were generated from the run. This is applicable if the run generates base image dependencies.- Returns:
- the outputImages value.
-
withOutputImages
public RunInner withOutputImages(List<ImageDescriptor> outputImages)
Set the outputImages property: The list of all images that were generated from the run. This is applicable if the run generates base image dependencies.- Parameters:
outputImages- the outputImages value to set.- Returns:
- the RunInner object itself.
-
task
public String task()
Get the task property: The task against which run was scheduled.- Returns:
- the task value.
-
withTask
public RunInner withTask(String task)
Set the task property: The task against which run was scheduled.- Parameters:
task- the task value to set.- Returns:
- the RunInner object itself.
-
imageUpdateTrigger
public ImageUpdateTrigger imageUpdateTrigger()
Get the imageUpdateTrigger property: The image update trigger that caused the run. This is applicable if the task has base image trigger configured.- Returns:
- the imageUpdateTrigger value.
-
withImageUpdateTrigger
public RunInner withImageUpdateTrigger(ImageUpdateTrigger imageUpdateTrigger)
Set the imageUpdateTrigger property: The image update trigger that caused the run. This is applicable if the task has base image trigger configured.- Parameters:
imageUpdateTrigger- the imageUpdateTrigger value to set.- Returns:
- the RunInner object itself.
-
sourceTrigger
public SourceTriggerDescriptor sourceTrigger()
Get the sourceTrigger property: The source trigger that caused the run.- Returns:
- the sourceTrigger value.
-
withSourceTrigger
public RunInner withSourceTrigger(SourceTriggerDescriptor sourceTrigger)
Set the sourceTrigger property: The source trigger that caused the run.- Parameters:
sourceTrigger- the sourceTrigger value to set.- Returns:
- the RunInner object itself.
-
timerTrigger
public TimerTriggerDescriptor timerTrigger()
Get the timerTrigger property: The timer trigger that caused the run.- Returns:
- the timerTrigger value.
-
withTimerTrigger
public RunInner withTimerTrigger(TimerTriggerDescriptor timerTrigger)
Set the timerTrigger property: The timer trigger that caused the run.- Parameters:
timerTrigger- the timerTrigger value to set.- Returns:
- the RunInner object itself.
-
platform
public PlatformProperties platform()
Get the platform property: The platform properties against which the run will happen.- Returns:
- the platform value.
-
withPlatform
public RunInner withPlatform(PlatformProperties platform)
Set the platform property: The platform properties against which the run will happen.- Parameters:
platform- the platform value to set.- Returns:
- the RunInner object itself.
-
agentConfiguration
public AgentProperties agentConfiguration()
Get the agentConfiguration property: The machine configuration of the run agent.- Returns:
- the agentConfiguration value.
-
withAgentConfiguration
public RunInner withAgentConfiguration(AgentProperties agentConfiguration)
Set the agentConfiguration property: The machine configuration of the run agent.- Parameters:
agentConfiguration- the agentConfiguration value to set.- Returns:
- the RunInner object itself.
-
sourceRegistryAuth
public String sourceRegistryAuth()
Get the sourceRegistryAuth property: The scope of the credentials that were used to login to the source registry during this run.- Returns:
- the sourceRegistryAuth value.
-
withSourceRegistryAuth
public RunInner withSourceRegistryAuth(String sourceRegistryAuth)
Set the sourceRegistryAuth property: The scope of the credentials that were used to login to the source registry during this run.- Parameters:
sourceRegistryAuth- the sourceRegistryAuth value to set.- Returns:
- the RunInner object itself.
-
customRegistries
public List<String> customRegistries()
Get the customRegistries property: The list of custom registries that were logged in during this run.- Returns:
- the customRegistries value.
-
withCustomRegistries
public RunInner withCustomRegistries(List<String> customRegistries)
Set the customRegistries property: The list of custom registries that were logged in during this run.- Parameters:
customRegistries- the customRegistries value to set.- Returns:
- the RunInner object itself.
-
runErrorMessage
public String runErrorMessage()
Get the runErrorMessage property: The error message received from backend systems after the run is scheduled.- Returns:
- the runErrorMessage value.
-
updateTriggerToken
public String updateTriggerToken()
Get the updateTriggerToken property: The update trigger token passed for the Run.- Returns:
- the updateTriggerToken value.
-
withUpdateTriggerToken
public RunInner withUpdateTriggerToken(String updateTriggerToken)
Set the updateTriggerToken property: The update trigger token passed for the Run.- Parameters:
updateTriggerToken- the updateTriggerToken value to set.- Returns:
- the RunInner object itself.
-
logArtifact
public ImageDescriptor logArtifact()
Get the logArtifact property: The image description for the log artifact.- Returns:
- the logArtifact value.
-
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of a run.- Returns:
- the provisioningState value.
-
withProvisioningState
public RunInner withProvisioningState(ProvisioningState provisioningState)
Set the provisioningState property: The provisioning state of a run.- Parameters:
provisioningState- the provisioningState value to set.- Returns:
- the RunInner object itself.
-
isArchiveEnabled
public Boolean isArchiveEnabled()
Get the isArchiveEnabled property: The value that indicates whether archiving is enabled or not.- Returns:
- the isArchiveEnabled value.
-
withIsArchiveEnabled
public RunInner withIsArchiveEnabled(Boolean isArchiveEnabled)
Set the isArchiveEnabled property: The value that indicates whether archiving is enabled or not.- Parameters:
isArchiveEnabled- the isArchiveEnabled value to set.- Returns:
- the RunInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-