Class SourceTriggerUpdateParameters
java.lang.Object
com.azure.resourcemanager.containerregistry.models.SourceTriggerUpdateParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SourceTriggerUpdateParameters>
public final class SourceTriggerUpdateParameters
extends Object
implements com.azure.json.JsonSerializable<SourceTriggerUpdateParameters>
The properties for updating a source based trigger.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SourceTriggerUpdateParameters class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SourceTriggerUpdateParameters from the JsonReader.name()Get the name property: The name of the trigger.Get the sourceRepository property: The properties that describes the source(code) for the task.Get the sourceTriggerEvents property: The source event corresponding to the trigger.status()Get the status property: The current status of trigger.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the name property: The name of the trigger.withSourceRepository(SourceUpdateParameters sourceRepository) Set the sourceRepository property: The properties that describes the source(code) for the task.withSourceTriggerEvents(List<SourceTriggerEvent> sourceTriggerEvents) Set the sourceTriggerEvents property: The source event corresponding to the trigger.withStatus(TriggerStatus status) Set the status property: The current status of trigger.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SourceTriggerUpdateParameters
public SourceTriggerUpdateParameters()Creates an instance of SourceTriggerUpdateParameters class.
-
-
Method Details
-
sourceRepository
Get the sourceRepository property: The properties that describes the source(code) for the task.- Returns:
- the sourceRepository value.
-
withSourceRepository
Set the sourceRepository property: The properties that describes the source(code) for the task.- Parameters:
sourceRepository- the sourceRepository value to set.- Returns:
- the SourceTriggerUpdateParameters object itself.
-
sourceTriggerEvents
Get the sourceTriggerEvents property: The source event corresponding to the trigger.- Returns:
- the sourceTriggerEvents value.
-
withSourceTriggerEvents
public SourceTriggerUpdateParameters withSourceTriggerEvents(List<SourceTriggerEvent> sourceTriggerEvents) Set the sourceTriggerEvents property: The source event corresponding to the trigger.- Parameters:
sourceTriggerEvents- the sourceTriggerEvents value to set.- Returns:
- the SourceTriggerUpdateParameters object itself.
-
status
Get the status property: The current status of trigger.- Returns:
- the status value.
-
withStatus
Set the status property: The current status of trigger.- Parameters:
status- the status value to set.- Returns:
- the SourceTriggerUpdateParameters object itself.
-
name
Get the name property: The name of the trigger.- Returns:
- the name value.
-
withName
Set the name property: The name of the trigger.- Parameters:
name- the name value to set.- Returns:
- the SourceTriggerUpdateParameters object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SourceTriggerUpdateParameters>- Throws:
IOException
-
fromJson
public static SourceTriggerUpdateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SourceTriggerUpdateParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SourceTriggerUpdateParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the SourceTriggerUpdateParameters.
-