Class JavaComponentProperties

java.lang.Object
com.azure.resourcemanager.appcontainers.models.JavaComponentProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<JavaComponentProperties>
Direct Known Subclasses:
SpringBootAdminComponent, SpringCloudConfigComponent, SpringCloudEurekaComponent

public class JavaComponentProperties extends Object implements com.azure.json.JsonSerializable<JavaComponentProperties>
Java Component common properties.
  • Constructor Details

    • JavaComponentProperties

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

    • componentType

      public JavaComponentType componentType()
      Get the componentType property: Type of the Java Component.
      Returns:
      the componentType value.
    • provisioningState

      public JavaComponentProvisioningState provisioningState()
      Get the provisioningState property: Provisioning state of the Java Component.
      Returns:
      the provisioningState value.
    • configurations

      public List<JavaComponentConfigurationProperty> configurations()
      Get the configurations property: List of Java Components configuration properties.
      Returns:
      the configurations value.
    • withConfigurations

      public JavaComponentProperties withConfigurations(List<JavaComponentConfigurationProperty> configurations)
      Set the configurations property: List of Java Components configuration properties.
      Parameters:
      configurations - the configurations value to set.
      Returns:
      the JavaComponentProperties object itself.
    • scale

      Get the scale property: Java component scaling configurations.
      Returns:
      the scale value.
    • withScale

      Set the scale property: Java component scaling configurations.
      Parameters:
      scale - the scale value to set.
      Returns:
      the JavaComponentProperties object itself.
    • serviceBinds

      public List<JavaComponentServiceBind> serviceBinds()
      Get the serviceBinds property: List of Java Components that are bound to the Java component.
      Returns:
      the serviceBinds value.
    • withServiceBinds

      public JavaComponentProperties withServiceBinds(List<JavaComponentServiceBind> serviceBinds)
      Set the serviceBinds property: List of Java Components that are bound to the Java component.
      Parameters:
      serviceBinds - the serviceBinds value to set.
      Returns:
      the JavaComponentProperties 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<JavaComponentProperties>
      Throws:
      IOException
    • fromJson

      public static JavaComponentProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of JavaComponentProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of JavaComponentProperties 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 JavaComponentProperties.