Class BuildResultProperties
java.lang.Object
com.azure.resourcemanager.appplatform.models.BuildResultProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BuildResultProperties>
public final class BuildResultProperties
extends Object
implements com.azure.json.JsonSerializable<BuildResultProperties>
Build result resource properties payload.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the buildPodName property: The build pod name which can be used to get the build log streaming.Get the buildStages property: All of the build stage (init-container and container) resources in build pod.error()Get the error property: Error when build is failed.static BuildResultPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BuildResultProperties from the JsonReader.image()Get the image property: The container registry image of this build result.name()Get the name property: The name of this build result.Get the provisioningState property: Provisioning state of the KPack build result.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withBuildPodName(String buildPodName) Set the buildPodName property: The build pod name which can be used to get the build log streaming.Set the error property: Error when build is failed.Set the name property: The name 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
-
BuildResultProperties
public BuildResultProperties()Creates an instance of BuildResultProperties class.
-
-
Method Details
-
name
Get the name property: The name of this build result.- Returns:
- the name value.
-
withName
Set the name property: The name of this build result.- Parameters:
name- the name value to set.- Returns:
- the BuildResultProperties object itself.
-
provisioningState
Get the provisioningState property: Provisioning state of the KPack build result.- Returns:
- the provisioningState value.
-
error
Get the error property: Error when build is failed.- Returns:
- the error value.
-
withError
Set the error property: Error when build is failed.- Parameters:
error- the error value to set.- Returns:
- the BuildResultProperties object itself.
-
buildPodName
Get the buildPodName property: The build pod name which can be used to get the build log streaming.- Returns:
- the buildPodName value.
-
withBuildPodName
Set the buildPodName property: The build pod name which can be used to get the build log streaming.- Parameters:
buildPodName- the buildPodName value to set.- Returns:
- the BuildResultProperties object itself.
-
buildStages
Get the buildStages property: All of the build stage (init-container and container) resources in build pod.- Returns:
- the buildStages value.
-
image
Get the image property: The container registry image of this build result.- Returns:
- the image value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<BuildResultProperties>- Throws:
IOException
-
fromJson
public static BuildResultProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BuildResultProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BuildResultProperties 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 BuildResultProperties.
-