BaseImageTrigger Class

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

Implements

public final class BaseImageTrigger
implements JsonSerializable<BaseImageTrigger>

The trigger based on base image dependency.

Constructor Summary

Constructor Description
BaseImageTrigger()

Creates an instance of BaseImageTrigger class.

Method Summary

Modifier and Type Method and Description
BaseImageTriggerType baseImageTriggerType()

Get the baseImageTriggerType property: The type of the auto trigger for base image dependency updates.

static BaseImageTrigger fromJson(JsonReader jsonReader)

Reads an instance of BaseImageTrigger from the JsonReader.

String name()

Get the name property: The name of the trigger.

TriggerStatus status()

Get the status property: The current status of trigger.

JsonWriter toJson(JsonWriter jsonWriter)
String updateTriggerEndpoint()

Get the updateTriggerEndpoint property: The endpoint URL for receiving update triggers.

UpdateTriggerPayloadType updateTriggerPayloadType()

Get the updateTriggerPayloadType property: Type of Payload body for Base image update triggers.

void validate()

Validates the instance.

BaseImageTrigger withBaseImageTriggerType(BaseImageTriggerType baseImageTriggerType)

Set the baseImageTriggerType property: The type of the auto trigger for base image dependency updates.

BaseImageTrigger withName(String name)

Set the name property: The name of the trigger.

BaseImageTrigger withStatus(TriggerStatus status)

Set the status property: The current status of trigger.

BaseImageTrigger withUpdateTriggerEndpoint(String updateTriggerEndpoint)

Set the updateTriggerEndpoint property: The endpoint URL for receiving update triggers.

BaseImageTrigger withUpdateTriggerPayloadType(UpdateTriggerPayloadType updateTriggerPayloadType)

Set the updateTriggerPayloadType property: Type of Payload body for Base image update triggers.

Methods inherited from java.lang.Object

Constructor Details

BaseImageTrigger

public BaseImageTrigger()

Creates an instance of BaseImageTrigger class.

Method Details

baseImageTriggerType

public BaseImageTriggerType baseImageTriggerType()

Get the baseImageTriggerType property: The type of the auto trigger for base image dependency updates.

Returns:

the baseImageTriggerType value.

fromJson

public static BaseImageTrigger fromJson(JsonReader jsonReader)

Reads an instance of BaseImageTrigger from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BaseImageTrigger if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

name

public String name()

Get the name property: The name of the trigger.

Returns:

the name value.

status

public TriggerStatus status()

Get the status property: The current status of trigger.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

updateTriggerEndpoint

public String updateTriggerEndpoint()

Get the updateTriggerEndpoint property: The endpoint URL for receiving update triggers.

Returns:

the updateTriggerEndpoint value.

updateTriggerPayloadType

public UpdateTriggerPayloadType updateTriggerPayloadType()

Get the updateTriggerPayloadType property: Type of Payload body for Base image update triggers.

Returns:

the updateTriggerPayloadType value.

validate

public void validate()

Validates the instance.

withBaseImageTriggerType

public BaseImageTrigger withBaseImageTriggerType(BaseImageTriggerType baseImageTriggerType)

Set the baseImageTriggerType property: The type of the auto trigger for base image dependency updates.

Parameters:

baseImageTriggerType - the baseImageTriggerType value to set.

Returns:

the BaseImageTrigger object itself.

withName

public BaseImageTrigger withName(String name)

Set the name property: The name of the trigger.

Parameters:

name - the name value to set.

Returns:

the BaseImageTrigger object itself.

withStatus

public BaseImageTrigger withStatus(TriggerStatus status)

Set the status property: The current status of trigger.

Parameters:

status - the status value to set.

Returns:

the BaseImageTrigger object itself.

withUpdateTriggerEndpoint

public BaseImageTrigger withUpdateTriggerEndpoint(String updateTriggerEndpoint)

Set the updateTriggerEndpoint property: The endpoint URL for receiving update triggers.

Parameters:

updateTriggerEndpoint - the updateTriggerEndpoint value to set.

Returns:

the BaseImageTrigger object itself.

withUpdateTriggerPayloadType

public BaseImageTrigger withUpdateTriggerPayloadType(UpdateTriggerPayloadType updateTriggerPayloadType)

Set the updateTriggerPayloadType property: Type of Payload body for Base image update triggers.

Parameters:

updateTriggerPayloadType - the updateTriggerPayloadType value to set.

Returns:

the BaseImageTrigger object itself.

Applies to