Class ManagedClusterWorkloadAutoScalerProfile

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

public final class ManagedClusterWorkloadAutoScalerProfile extends Object implements com.azure.json.JsonSerializable<ManagedClusterWorkloadAutoScalerProfile>
Workload Auto-scaler profile for the managed cluster.
  • Constructor Details

    • ManagedClusterWorkloadAutoScalerProfile

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

    • keda

      Get the keda property: KEDA (Kubernetes Event-driven Autoscaling) settings for the workload auto-scaler profile.
      Returns:
      the keda value.
    • withKeda

      Set the keda property: KEDA (Kubernetes Event-driven Autoscaling) settings for the workload auto-scaler profile.
      Parameters:
      keda - the keda value to set.
      Returns:
      the ManagedClusterWorkloadAutoScalerProfile object itself.
    • verticalPodAutoscaler

      Get the verticalPodAutoscaler property: VPA (Vertical Pod Autoscaler) settings for the workload auto-scaler profile.
      Returns:
      the verticalPodAutoscaler value.
    • withVerticalPodAutoscaler

      Set the verticalPodAutoscaler property: VPA (Vertical Pod Autoscaler) settings for the workload auto-scaler profile.
      Parameters:
      verticalPodAutoscaler - the verticalPodAutoscaler value to set.
      Returns:
      the ManagedClusterWorkloadAutoScalerProfile 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<ManagedClusterWorkloadAutoScalerProfile>
      Throws:
      IOException
    • fromJson

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