ImageTemplateLastRunStatus Class

  • java.lang.Object
    • com.azure.resourcemanager.imagebuilder.models.ImageTemplateLastRunStatus

public final class ImageTemplateLastRunStatus

Describes the latest status of running an image template.

Constructor Summary

Constructor Description
ImageTemplateLastRunStatus()

Creates an instance of ImageTemplateLastRunStatus class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime endTime()

Get the endTime property: End time of the last run (UTC).

String message()

Get the message property: Verbose information about the last run state.

RunState runState()

Get the runState property: State of the last run.

RunSubState runSubState()

Get the runSubState property: Sub-state of the last run.

OffsetDateTime startTime()

Get the startTime property: Start time of the last run (UTC).

void validate()

Validates the instance.

ImageTemplateLastRunStatus withEndTime(OffsetDateTime endTime)

Set the endTime property: End time of the last run (UTC).

ImageTemplateLastRunStatus withMessage(String message)

Set the message property: Verbose information about the last run state.

ImageTemplateLastRunStatus withRunState(RunState runState)

Set the runState property: State of the last run.

ImageTemplateLastRunStatus withRunSubState(RunSubState runSubState)

Set the runSubState property: Sub-state of the last run.

ImageTemplateLastRunStatus withStartTime(OffsetDateTime startTime)

Set the startTime property: Start time of the last run (UTC).

Methods inherited from java.lang.Object

Constructor Details

ImageTemplateLastRunStatus

public ImageTemplateLastRunStatus()

Creates an instance of ImageTemplateLastRunStatus class.

Method Details

endTime

public OffsetDateTime endTime()

Get the endTime property: End time of the last run (UTC).

Returns:

the endTime value.

message

public String message()

Get the message property: Verbose information about the last run state.

Returns:

the message value.

runState

public RunState runState()

Get the runState property: State of the last run.

Returns:

the runState value.

runSubState

public RunSubState runSubState()

Get the runSubState property: Sub-state of the last run.

Returns:

the runSubState value.

startTime

public OffsetDateTime startTime()

Get the startTime property: Start time of the last run (UTC).

Returns:

the startTime value.

validate

public void validate()

Validates the instance.

withEndTime

public ImageTemplateLastRunStatus withEndTime(OffsetDateTime endTime)

Set the endTime property: End time of the last run (UTC).

Parameters:

endTime - the endTime value to set.

Returns:

the ImageTemplateLastRunStatus object itself.

withMessage

public ImageTemplateLastRunStatus withMessage(String message)

Set the message property: Verbose information about the last run state.

Parameters:

message - the message value to set.

Returns:

the ImageTemplateLastRunStatus object itself.

withRunState

public ImageTemplateLastRunStatus withRunState(RunState runState)

Set the runState property: State of the last run.

Parameters:

runState - the runState value to set.

Returns:

the ImageTemplateLastRunStatus object itself.

withRunSubState

public ImageTemplateLastRunStatus withRunSubState(RunSubState runSubState)

Set the runSubState property: Sub-state of the last run.

Parameters:

runSubState - the runSubState value to set.

Returns:

the ImageTemplateLastRunStatus object itself.

withStartTime

public ImageTemplateLastRunStatus withStartTime(OffsetDateTime startTime)

Set the startTime property: Start time of the last run (UTC).

Parameters:

startTime - the startTime value to set.

Returns:

the ImageTemplateLastRunStatus object itself.

Applies to