Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.containerregistry; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty;
The properties of a trigger.
/** * The properties of a trigger. */
public class TriggerProperties {
The collection of triggers based on source code repository.
/** * The collection of triggers based on source code repository. */
@JsonProperty(value = "sourceTriggers") private List<SourceTrigger> sourceTriggers;
The trigger based on base image dependencies.
/** * The trigger based on base image dependencies. */
@JsonProperty(value = "baseImageTrigger") private BaseImageTrigger baseImageTrigger;
Get the collection of triggers based on source code repository.
Returns:the sourceTriggers value
/** * Get the collection of triggers based on source code repository. * * @return the sourceTriggers value */
public List<SourceTrigger> sourceTriggers() { return this.sourceTriggers; }
Set the collection of triggers based on source code repository.
Params:
  • sourceTriggers – the sourceTriggers value to set
Returns:the TriggerProperties object itself.
/** * Set the collection of triggers based on source code repository. * * @param sourceTriggers the sourceTriggers value to set * @return the TriggerProperties object itself. */
public TriggerProperties withSourceTriggers(List<SourceTrigger> sourceTriggers) { this.sourceTriggers = sourceTriggers; return this; }
Get the trigger based on base image dependencies.
Returns:the baseImageTrigger value
/** * Get the trigger based on base image dependencies. * * @return the baseImageTrigger value */
public BaseImageTrigger baseImageTrigger() { return this.baseImageTrigger; }
Set the trigger based on base image dependencies.
Params:
  • baseImageTrigger – the baseImageTrigger value to set
Returns:the TriggerProperties object itself.
/** * Set the trigger based on base image dependencies. * * @param baseImageTrigger the baseImageTrigger value to set * @return the TriggerProperties object itself. */
public TriggerProperties withBaseImageTrigger(BaseImageTrigger baseImageTrigger) { this.baseImageTrigger = baseImageTrigger; return this; } }