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 Details

    • BuildServiceProperties

      public BuildServiceProperties()
      Creates an instance of BuildServiceProperties class.
  • Method Details

    • containerRegistry

      public String containerRegistry()
      Get the containerRegistry property: The resource id of the container registry used in this build service.
      Returns:
      the containerRegistry value.
    • withContainerRegistry

      public BuildServiceProperties withContainerRegistry(String containerRegistry)
      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

      public String kPackVersion()
      Get the kPackVersion property: The installed KPack version in this build service.
      Returns:
      the kPackVersion value.
    • provisioningState

      public BuildServiceProvisioningState provisioningState()
      Get the provisioningState property: Provisioning state of the KPack build service.
      Returns:
      the provisioningState value.
    • resourceRequests

      public BuildServicePropertiesResourceRequests 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.