Class BuildProperties
java.lang.Object
com.azure.resourcemanager.appplatform.models.BuildProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BuildProperties>
public final class BuildProperties
extends Object
implements com.azure.json.JsonSerializable<BuildProperties>
Build resource properties payload.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the agentPool property: The resource id of agent pool.apms()Get the apms property: The APMs for this build.builder()Get the builder property: The resource id of builder to build the source code.Get the certificates property: The CA Certificates for this build.env()Get the env property: The environment variables for this build.static BuildPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BuildProperties from the JsonReader.Get the provisioningState property: Provisioning state of the KPack build result.Get the relativePath property: The relative path of source code.Get the resourceRequests property: The customized build resource for this build.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the triggeredBuildResult property: The build result triggered by this build.voidvalidate()Validates the instance.withAgentPool(String agentPool) Set the agentPool property: The resource id of agent pool.withApms(List<ApmReference> apms) Set the apms property: The APMs for this build.withBuilder(String builder) Set the builder property: The resource id of builder to build the source code.withCertificates(List<CertificateReference> certificates) Set the certificates property: The CA Certificates for this build.Set the env property: The environment variables for this build.withRelativePath(String relativePath) Set the relativePath property: The relative path of source code.withResourceRequests(BuildResourceRequests resourceRequests) Set the resourceRequests property: The customized build resource for this build.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
-
BuildProperties
public BuildProperties()Creates an instance of BuildProperties class.
-
-
Method Details
-
relativePath
Get the relativePath property: The relative path of source code.- Returns:
- the relativePath value.
-
withRelativePath
Set the relativePath property: The relative path of source code.- Parameters:
relativePath- the relativePath value to set.- Returns:
- the BuildProperties object itself.
-
builder
Get the builder property: The resource id of builder to build the source code.- Returns:
- the builder value.
-
withBuilder
Set the builder property: The resource id of builder to build the source code.- Parameters:
builder- the builder value to set.- Returns:
- the BuildProperties object itself.
-
agentPool
Get the agentPool property: The resource id of agent pool.- Returns:
- the agentPool value.
-
withAgentPool
Set the agentPool property: The resource id of agent pool.- Parameters:
agentPool- the agentPool value to set.- Returns:
- the BuildProperties object itself.
-
provisioningState
Get the provisioningState property: Provisioning state of the KPack build result.- Returns:
- the provisioningState value.
-
env
Get the env property: The environment variables for this build.- Returns:
- the env value.
-
withEnv
Set the env property: The environment variables for this build.- Parameters:
env- the env value to set.- Returns:
- the BuildProperties object itself.
-
apms
Get the apms property: The APMs for this build.- Returns:
- the apms value.
-
withApms
Set the apms property: The APMs for this build.- Parameters:
apms- the apms value to set.- Returns:
- the BuildProperties object itself.
-
certificates
Get the certificates property: The CA Certificates for this build.- Returns:
- the certificates value.
-
withCertificates
Set the certificates property: The CA Certificates for this build.- Parameters:
certificates- the certificates value to set.- Returns:
- the BuildProperties object itself.
-
triggeredBuildResult
Get the triggeredBuildResult property: The build result triggered by this build.- Returns:
- the triggeredBuildResult value.
-
resourceRequests
Get the resourceRequests property: The customized build resource for this build.- Returns:
- the resourceRequests value.
-
withResourceRequests
Set the resourceRequests property: The customized build resource for this build.- Parameters:
resourceRequests- the resourceRequests value to set.- Returns:
- the BuildProperties 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<BuildProperties>- Throws:
IOException
-
fromJson
Reads an instance of BuildProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BuildProperties 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 BuildProperties.
-