Class BuildServiceProperties
java.lang.Object
com.azure.resourcemanager.appplatform.models.BuildServiceProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BuildServiceProperties>
public final class BuildServiceProperties
extends Object
implements com.azure.json.JsonSerializable<BuildServiceProperties>
Build service resource properties payload.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of BuildServiceProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the containerRegistry property: The resource id of the container registry used in this build service.static BuildServicePropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BuildServiceProperties from the JsonReader.Get the kPackVersion property: The installed KPack version in this build service.Get the provisioningState property: Provisioning state of the KPack build service.Get the resourceRequests property: The runtime resource configuration of this build service.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withContainerRegistry(String containerRegistry) Set the containerRegistry property: The resource id of the container registry used in this build service.withResourceRequests(BuildServicePropertiesResourceRequests resourceRequests) Set the resourceRequests property: The runtime resource configuration of this build service.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
-
BuildServiceProperties
public BuildServiceProperties()Creates an instance of BuildServiceProperties class.
-
-
Method Details
-
containerRegistry
Get the containerRegistry property: The resource id of the container registry used in this build service.- Returns:
- the containerRegistry value.
-
withContainerRegistry
Set the containerRegistry property: The resource id of the container registry used in this build service.- Parameters:
containerRegistry- the containerRegistry value to set.- Returns:
- the BuildServiceProperties object itself.
-
kPackVersion
Get the kPackVersion property: The installed KPack version in this build service.- Returns:
- the kPackVersion value.
-
provisioningState
Get the provisioningState property: Provisioning state of the KPack build service.- Returns:
- the provisioningState value.
-
resourceRequests
Get the resourceRequests property: The runtime resource configuration of this build service.- Returns:
- the resourceRequests value.
-
withResourceRequests
public BuildServiceProperties withResourceRequests(BuildServicePropertiesResourceRequests resourceRequests) Set the resourceRequests property: The runtime resource configuration of this build service.- Parameters:
resourceRequests- the resourceRequests value to set.- Returns:
- the BuildServiceProperties 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<BuildServiceProperties>- Throws:
IOException
-
fromJson
public static BuildServiceProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BuildServiceProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BuildServiceProperties 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 BuildServiceProperties.
-