Class BaseImageTriggerUpdateParameters
java.lang.Object
com.azure.resourcemanager.containerregistry.models.BaseImageTriggerUpdateParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BaseImageTriggerUpdateParameters>
public final class BaseImageTriggerUpdateParameters
extends Object
implements com.azure.json.JsonSerializable<BaseImageTriggerUpdateParameters>
The properties for updating base image dependency trigger.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of BaseImageTriggerUpdateParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the baseImageTriggerType property: The type of the auto trigger for base image dependency updates.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BaseImageTriggerUpdateParameters from the JsonReader.name()Get the name property: The name of the trigger.status()Get the status property: The current status of trigger.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the updateTriggerEndpoint property: The endpoint URL for receiving update triggers.Get the updateTriggerPayloadType property: Type of Payload body for Base image update triggers.voidvalidate()Validates the instance.withBaseImageTriggerType(BaseImageTriggerType baseImageTriggerType) Set the baseImageTriggerType property: The type of the auto trigger for base image dependency updates.Set the name property: The name of the trigger.withStatus(TriggerStatus status) Set the status property: The current status of trigger.withUpdateTriggerEndpoint(String updateTriggerEndpoint) Set the updateTriggerEndpoint property: The endpoint URL for receiving update triggers.withUpdateTriggerPayloadType(UpdateTriggerPayloadType updateTriggerPayloadType) Set the updateTriggerPayloadType property: Type of Payload body for Base image update triggers.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
-
BaseImageTriggerUpdateParameters
public BaseImageTriggerUpdateParameters()Creates an instance of BaseImageTriggerUpdateParameters class.
-
-
Method Details
-
baseImageTriggerType
Get the baseImageTriggerType property: The type of the auto trigger for base image dependency updates.- Returns:
- the baseImageTriggerType value.
-
withBaseImageTriggerType
public BaseImageTriggerUpdateParameters withBaseImageTriggerType(BaseImageTriggerType baseImageTriggerType) Set the baseImageTriggerType property: The type of the auto trigger for base image dependency updates.- Parameters:
baseImageTriggerType- the baseImageTriggerType value to set.- Returns:
- the BaseImageTriggerUpdateParameters object itself.
-
updateTriggerEndpoint
Get the updateTriggerEndpoint property: The endpoint URL for receiving update triggers.- Returns:
- the updateTriggerEndpoint value.
-
withUpdateTriggerEndpoint
Set the updateTriggerEndpoint property: The endpoint URL for receiving update triggers.- Parameters:
updateTriggerEndpoint- the updateTriggerEndpoint value to set.- Returns:
- the BaseImageTriggerUpdateParameters object itself.
-
updateTriggerPayloadType
Get the updateTriggerPayloadType property: Type of Payload body for Base image update triggers.- Returns:
- the updateTriggerPayloadType value.
-
withUpdateTriggerPayloadType
public BaseImageTriggerUpdateParameters withUpdateTriggerPayloadType(UpdateTriggerPayloadType updateTriggerPayloadType) Set the updateTriggerPayloadType property: Type of Payload body for Base image update triggers.- Parameters:
updateTriggerPayloadType- the updateTriggerPayloadType value to set.- Returns:
- the BaseImageTriggerUpdateParameters 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 BaseImageTriggerUpdateParameters 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 BaseImageTriggerUpdateParameters 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<BaseImageTriggerUpdateParameters>- Throws:
IOException
-
fromJson
public static BaseImageTriggerUpdateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BaseImageTriggerUpdateParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BaseImageTriggerUpdateParameters 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 BaseImageTriggerUpdateParameters.
-