# Interface DedicatedInfrastructure.AutoscalingSpecOrBuilder (0.15.0)

0.15.0 (latest) 0.12.0 0.9.0 0.8.0 0.6.0 0.4.0 0.3.0 0.1.0

    public static interface DedicatedInfrastructure.AutoscalingSpecOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getMaxReplicaCount()

    public abstract int getMaxReplicaCount()

Optional. The maximum number of replicas. Must be \>=
`min_replica_count` and \<= `1000`.
For the v1beta version, if not set or set to `0`, defaults to
the greater of `min_replica_count` and `5`.
For all other versions, if not set or set to `0`, defaults to
the greater of `min_replica_count` and `2`.

`int32 max_replica_count = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The maxReplicaCount. |

### getMinReplicaCount()

    public abstract int getMinReplicaCount()

Optional. The minimum number of replicas. If not set or set to `0`,
defaults to `2`. Must be \>= `1` and \<= `1000`.

`int32 min_replica_count = 1 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The minReplicaCount. |