Package org.cdk8s.plus24
Interface ScalingTarget
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ScalingTarget.Jsii$Proxy
@Generated(value="jsii-pacmak/1.72.0 (build 4b8828b)", date="2022-12-15T15:42:36.432Z") @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 class
ScalingTarget.Builder
A builder forScalingTarget
static class
ScalingTarget.Jsii$Proxy
An implementation forScalingTarget
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static ScalingTarget.Builder
builder()
String
getApiVersion()
The object's API version (e.g.List<Container>
getContainers()
Container definitions associated with the target.String
getKind()
The object kind (e.g.String
getName()
The Kubernetes name of this resource.default Number
getReplicas()
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.Builder
ofScalingTarget
-
-