SourceTrigger Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. SourceTrigger
- com.
Implements
public final class SourceTrigger
implements JsonSerializable<SourceTrigger>
The properties of a source based trigger.
Constructor Summary
Constructor | Description |
---|---|
SourceTrigger() |
Creates an instance of Source |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Source |
fromJson(JsonReader jsonReader)
Reads an instance of Source |
String |
name()
Get the name property: The name of the trigger. |
Source |
sourceRepository()
Get the source |
List<Source |
sourceTriggerEvents()
Get the source |
Trigger |
status()
Get the status property: The current status of trigger. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Source |
withName(String name)
Set the name property: The name of the trigger. |
Source |
withSourceRepository(SourceProperties sourceRepository)
Set the source |
Source |
withSourceTriggerEvents(List<SourceTriggerEvent> sourceTriggerEvents)
Set the source |
Source |
withStatus(TriggerStatus status)
Set the status property: The current status of trigger. |
Methods inherited from java.lang.Object
Constructor Details
SourceTrigger
public SourceTrigger()
Creates an instance of SourceTrigger class.
Method Details
fromJson
public static SourceTrigger fromJson(JsonReader jsonReader)
Reads an instance of SourceTrigger from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The name of the trigger.
Returns:
sourceRepository
public SourceProperties sourceRepository()
Get the sourceRepository property: The properties that describes the source(code) for the task.
Returns:
sourceTriggerEvents
public List
Get the sourceTriggerEvents property: The source event corresponding to the trigger.
Returns:
status
public TriggerStatus status()
Get the status property: The current status of trigger.
Returns:
toJson
validate
public void validate()
Validates the instance.
withName
public SourceTrigger withName(String name)
Set the name property: The name of the trigger.
Parameters:
Returns:
withSourceRepository
public SourceTrigger withSourceRepository(SourceProperties sourceRepository)
Set the sourceRepository property: The properties that describes the source(code) for the task.
Parameters:
Returns:
withSourceTriggerEvents
public SourceTrigger withSourceTriggerEvents(List
Set the sourceTriggerEvents property: The source event corresponding to the trigger.
Parameters:
Returns:
withStatus
public SourceTrigger withStatus(TriggerStatus status)
Set the status property: The current status of trigger.
Parameters:
Returns:
Applies to
Azure SDK for Java