public class SourceTrigger extends Object
| Constructor | Description |
|---|---|
SourceTrigger() |
| Modifier and Type | Method | Description |
|---|---|---|
String |
name() |
Get the name of the trigger.
|
SourceProperties |
sourceRepository() |
Get the properties that describes the source(code) for the task.
|
List<SourceTriggerEvent> |
sourceTriggerEvents() |
Get the source event corresponding to the trigger.
|
TriggerStatus |
status() |
Get the current status of trigger.
|
SourceTrigger |
withName(String name) |
Set the name of the trigger.
|
SourceTrigger |
withSourceRepository(SourceProperties sourceRepository) |
Set the properties that describes the source(code) for the task.
|
SourceTrigger |
withSourceTriggerEvents(List<SourceTriggerEvent> sourceTriggerEvents) |
Set the source event corresponding to the trigger.
|
SourceTrigger |
withStatus(TriggerStatus status) |
Set the current status of trigger.
|
public SourceProperties sourceRepository()
public SourceTrigger withSourceRepository(SourceProperties sourceRepository)
sourceRepository - the sourceRepository value to setpublic List<SourceTriggerEvent> sourceTriggerEvents()
public SourceTrigger withSourceTriggerEvents(List<SourceTriggerEvent> sourceTriggerEvents)
sourceTriggerEvents - the sourceTriggerEvents value to setpublic TriggerStatus status()
public SourceTrigger withStatus(TriggerStatus status)
status - the status value to setpublic String name()
public SourceTrigger withName(String name)
name - the name value to set /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/