ImageUpdateTrigger Class

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

Implements

public final class ImageUpdateTrigger
implements JsonSerializable<ImageUpdateTrigger>

The image update trigger that caused a build.

Constructor Summary

Constructor Description
ImageUpdateTrigger()

Creates an instance of ImageUpdateTrigger class.

Method Summary

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

Reads an instance of ImageUpdateTrigger from the JsonReader.

String id()

Get the id property: The unique ID of the trigger.

List<ImageDescriptor> images()

Get the images property: The list of image updates that caused the build.

OffsetDateTime timestamp()

Get the timestamp property: The timestamp when the image update happened.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ImageUpdateTrigger withId(String id)

Set the id property: The unique ID of the trigger.

ImageUpdateTrigger withImages(List<ImageDescriptor> images)

Set the images property: The list of image updates that caused the build.

ImageUpdateTrigger withTimestamp(OffsetDateTime timestamp)

Set the timestamp property: The timestamp when the image update happened.

Methods inherited from java.lang.Object

Constructor Details

ImageUpdateTrigger

public ImageUpdateTrigger()

Creates an instance of ImageUpdateTrigger class.

Method Details

fromJson

public static ImageUpdateTrigger fromJson(JsonReader jsonReader)

Reads an instance of ImageUpdateTrigger from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: The unique ID of the trigger.

Returns:

the id value.

images

public List images()

Get the images property: The list of image updates that caused the build.

Returns:

the images value.

timestamp

public OffsetDateTime timestamp()

Get the timestamp property: The timestamp when the image update happened.

Returns:

the timestamp value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public ImageUpdateTrigger withId(String id)

Set the id property: The unique ID of the trigger.

Parameters:

id - the id value to set.

Returns:

the ImageUpdateTrigger object itself.

withImages

public ImageUpdateTrigger withImages(List images)

Set the images property: The list of image updates that caused the build.

Parameters:

images - the images value to set.

Returns:

the ImageUpdateTrigger object itself.

withTimestamp

public ImageUpdateTrigger withTimestamp(OffsetDateTime timestamp)

Set the timestamp property: The timestamp when the image update happened.

Parameters:

timestamp - the timestamp value to set.

Returns:

the ImageUpdateTrigger object itself.

Applies to