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 Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedClusterWorkloadAutoScalerProfile class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedClusterWorkloadAutoScalerProfile from the JsonReader.keda()Get the keda property: KEDA (Kubernetes Event-driven Autoscaling) settings for the workload auto-scaler profile.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the verticalPodAutoscaler property: VPA (Vertical Pod Autoscaler) settings for the workload auto-scaler profile.Set the keda property: KEDA (Kubernetes Event-driven Autoscaling) settings for the workload auto-scaler profile.withVerticalPodAutoscaler(ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler verticalPodAutoscaler) Set the verticalPodAutoscaler property: VPA (Vertical Pod Autoscaler) settings for the workload auto-scaler profile.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
-
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
public ManagedClusterWorkloadAutoScalerProfile withKeda(ManagedClusterWorkloadAutoScalerProfileKeda keda) 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
public ManagedClusterWorkloadAutoScalerProfile withVerticalPodAutoscaler(ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler verticalPodAutoscaler) 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
- Specified by:
toJsonin interfacecom.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.
-