Class TriggeredBuildResult
java.lang.Object
com.azure.resourcemanager.appplatform.models.TriggeredBuildResult
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TriggeredBuildResult>
public final class TriggeredBuildResult
extends Object
implements com.azure.json.JsonSerializable<TriggeredBuildResult>
The build result triggered by a build.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TriggeredBuildResultfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TriggeredBuildResult from the JsonReader.id()Get the id property: The unique build id of this build result.image()Get the image property: The container image of this build result.Get the lastTransitionReason property: The last transition reason of this build result.Get the lastTransitionStatus property: The last transition status of this build result.Get the lastTransitionTime property: The last transition time of this build result.Get the provisioningState property: The provisioning state of this build result.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the id property: The unique build id of this build result.Set the image property: The container image of this build result.withLastTransitionReason(String lastTransitionReason) Set the lastTransitionReason property: The last transition reason of this build result.withLastTransitionStatus(String lastTransitionStatus) Set the lastTransitionStatus property: The last transition status of this build result.withLastTransitionTime(OffsetDateTime lastTransitionTime) Set the lastTransitionTime property: The last transition time of this build result.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
-
TriggeredBuildResult
public TriggeredBuildResult()Creates an instance of TriggeredBuildResult class.
-
-
Method Details
-
id
Get the id property: The unique build id of this build result.- Returns:
- the id value.
-
withId
Set the id property: The unique build id of this build result.- Parameters:
id- the id value to set.- Returns:
- the TriggeredBuildResult object itself.
-
provisioningState
Get the provisioningState property: The provisioning state of this build result.- Returns:
- the provisioningState value.
-
image
Get the image property: The container image of this build result.- Returns:
- the image value.
-
withImage
Set the image property: The container image of this build result.- Parameters:
image- the image value to set.- Returns:
- the TriggeredBuildResult object itself.
-
lastTransitionTime
Get the lastTransitionTime property: The last transition time of this build result.- Returns:
- the lastTransitionTime value.
-
withLastTransitionTime
Set the lastTransitionTime property: The last transition time of this build result.- Parameters:
lastTransitionTime- the lastTransitionTime value to set.- Returns:
- the TriggeredBuildResult object itself.
-
lastTransitionReason
Get the lastTransitionReason property: The last transition reason of this build result.- Returns:
- the lastTransitionReason value.
-
withLastTransitionReason
Set the lastTransitionReason property: The last transition reason of this build result.- Parameters:
lastTransitionReason- the lastTransitionReason value to set.- Returns:
- the TriggeredBuildResult object itself.
-
lastTransitionStatus
Get the lastTransitionStatus property: The last transition status of this build result.- Returns:
- the lastTransitionStatus value.
-
withLastTransitionStatus
Set the lastTransitionStatus property: The last transition status of this build result.- Parameters:
lastTransitionStatus- the lastTransitionStatus value to set.- Returns:
- the TriggeredBuildResult 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<TriggeredBuildResult>- Throws:
IOException
-
fromJson
public static TriggeredBuildResult fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of TriggeredBuildResult from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of TriggeredBuildResult if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the TriggeredBuildResult.
-