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 for updating a source based trigger.
/**
* The properties for updating a source based trigger.
*/
public class SourceTriggerUpdateParameters {
The properties that describes the source(code) for the task.
/**
* The properties that describes the source(code) for the task.
*/
@JsonProperty(value = "sourceRepository")
private SourceUpdateParameters sourceRepository;
The source event corresponding to the trigger.
/**
* The source event corresponding to the trigger.
*/
@JsonProperty(value = "sourceTriggerEvents")
private List<SourceTriggerEvent> sourceTriggerEvents;
The current status of trigger. Possible values include: 'Disabled',
'Enabled'.
/**
* The current status of trigger. Possible values include: 'Disabled',
* 'Enabled'.
*/
@JsonProperty(value = "status")
private TriggerStatus status;
The name of the trigger.
/**
* The name of the trigger.
*/
@JsonProperty(value = "name", required = true)
private String name;
Get the properties that describes the source(code) for the task.
Returns: the sourceRepository value
/**
* Get the properties that describes the source(code) for the task.
*
* @return the sourceRepository value
*/
public SourceUpdateParameters sourceRepository() {
return this.sourceRepository;
}
Set the properties that describes the source(code) for the task.
Params: - sourceRepository – the sourceRepository value to set
Returns: the SourceTriggerUpdateParameters object itself.
/**
* Set the properties that describes the source(code) for the task.
*
* @param sourceRepository the sourceRepository value to set
* @return the SourceTriggerUpdateParameters object itself.
*/
public SourceTriggerUpdateParameters withSourceRepository(SourceUpdateParameters sourceRepository) {
this.sourceRepository = sourceRepository;
return this;
}
Get the source event corresponding to the trigger.
Returns: the sourceTriggerEvents value
/**
* Get the source event corresponding to the trigger.
*
* @return the sourceTriggerEvents value
*/
public List<SourceTriggerEvent> sourceTriggerEvents() {
return this.sourceTriggerEvents;
}
Set the source event corresponding to the trigger.
Params: - sourceTriggerEvents – the sourceTriggerEvents value to set
Returns: the SourceTriggerUpdateParameters object itself.
/**
* Set the source event corresponding to the trigger.
*
* @param sourceTriggerEvents the sourceTriggerEvents value to set
* @return the SourceTriggerUpdateParameters object itself.
*/
public SourceTriggerUpdateParameters withSourceTriggerEvents(List<SourceTriggerEvent> sourceTriggerEvents) {
this.sourceTriggerEvents = sourceTriggerEvents;
return this;
}
Get the current status of trigger. Possible values include: 'Disabled', 'Enabled'.
Returns: the status value
/**
* Get the current status of trigger. Possible values include: 'Disabled', 'Enabled'.
*
* @return the status value
*/
public TriggerStatus status() {
return this.status;
}
Set the current status of trigger. Possible values include: 'Disabled', 'Enabled'.
Params: - status – the status value to set
Returns: the SourceTriggerUpdateParameters object itself.
/**
* Set the current status of trigger. Possible values include: 'Disabled', 'Enabled'.
*
* @param status the status value to set
* @return the SourceTriggerUpdateParameters object itself.
*/
public SourceTriggerUpdateParameters withStatus(TriggerStatus status) {
this.status = status;
return this;
}
Get the name of the trigger.
Returns: the name value
/**
* Get the name of the trigger.
*
* @return the name value
*/
public String name() {
return this.name;
}
Set the name of the trigger.
Params: - name – the name value to set
Returns: the SourceTriggerUpdateParameters object itself.
/**
* Set the name of the trigger.
*
* @param name the name value to set
* @return the SourceTriggerUpdateParameters object itself.
*/
public SourceTriggerUpdateParameters withName(String name) {
this.name = name;
return this;
}
}