ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler

Implements

public final class ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler
implements JsonSerializable<ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler>

VPA (Vertical Pod Autoscaler) settings for the workload auto-scaler profile.

Constructor Summary

Constructor Description
ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler()

Creates an instance of ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler class.

Method Summary

Modifier and Type Method and Description
boolean enabled()

Get the enabled property: Whether to enable VPA.

static ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler withEnabled(boolean enabled)

Set the enabled property: Whether to enable VPA.

Methods inherited from java.lang.Object

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.

fromJson

public static ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnabled

public ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler withEnabled(boolean enabled)

Set the enabled property: Whether to enable VPA. Default value is false.

Parameters:

enabled - the enabled value to set.

Returns:

the ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler object itself.

Applies to