Class ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler

java.lang.Object
com.azure.resourcemanager.containerservice.models.ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler
All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler>

public final class ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler extends Object implements com.azure.json.JsonSerializable<ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler>
VPA (Vertical Pod Autoscaler) settings for the workload auto-scaler profile.
  • Constructor Details

    • ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler

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

    • enabled

      public boolean enabled()
      Get the enabled property: Whether to enable VPA. Default value is false.
      Returns:
      the enabled value.
    • withEnabled

      Set the enabled property: Whether to enable VPA. Default value is false.
      Parameters:
      enabled - the enabled value to set.
      Returns:
      the ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler 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<ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler>
      Throws:
      IOException
    • fromJson

      public static ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler.