Package org.cdk8s.plus25
Interface ScalingTarget
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ScalingTarget.Jsii$Proxy
@Generated(value="jsii-pacmak/1.88.0 (build eaabd08)", date="2023-09-11T06:17:58.412Z") @Stability(Stable) public interface ScalingTarget extends software.amazon.jsii.JsiiSerializable
Properties used to configure the target of an Autoscaler.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classScalingTarget.BuilderA builder forScalingTargetstatic classScalingTarget.Jsii$ProxyAn implementation forScalingTarget
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static ScalingTarget.Builderbuilder()StringgetApiVersion()The object's API version (e.g.List<Container>getContainers()Container definitions associated with the target.StringgetKind()The object kind (e.g.StringgetName()The Kubernetes name of this resource.default NumbergetReplicas()The fixed number of replicas defined on the target.
-
-
-
Method Detail
-
getApiVersion
@Stability(Stable) @NotNull String getApiVersion()
The object's API version (e.g. "authorization.k8s.io/v1").
-
getContainers
@Stability(Stable) @NotNull List<Container> getContainers()
Container definitions associated with the target.
-
getKind
@Stability(Stable) @NotNull String getKind()
The object kind (e.g. "Deployment").
-
getName
@Stability(Stable) @NotNull String getName()
The Kubernetes name of this resource.
-
getReplicas
@Stability(Stable) @Nullable default Number getReplicas()
The fixed number of replicas defined on the target.This is used for validation purposes as Scalable targets should not have a fixed number of replicas.
-
builder
@Stability(Stable) static ScalingTarget.Builder builder()
- Returns:
- a
ScalingTarget.BuilderofScalingTarget
-
-