# Google Cloud Hypercompute Cluster V1beta Client - Class NewFlexStartInstancesConfig (0.3.0)

0.3.0 (latest) 0.2.0 0.1.1

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Hypercompute Cluster V1beta Client class NewFlexStartInstancesConfig.

When set in a
[ComputeResourceConfig](https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1beta.ComputeResourceConfig),
indicates that VM instances should be created using [Flex
Start](https://cloud.google.com/compute/docs/instances/provisioning-models).

Generated from protobuf message `google.cloud.hypercomputecluster.v1beta.NewFlexStartInstancesConfig`

## Namespace

Google \\ Cloud \\ HypercomputeCluster \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ zone` | `string` Required. Immutable. Name of the zone in which VM instances should run, e.g., `us-central1-a`. Must be in the same region as the cluster, and must match the zone of any other resources specified in the cluster. |
| `↳ machine_type` | `string` Required. Immutable. Name of the Compute Engine [machine type](https://cloud.google.com/compute/docs/machine-resource) to use, e.g. `n2-standard-2`. |
| `↳ max_duration` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` Required. Immutable. Specifies the time limit for created instances. Instances will be terminated at the end of this duration. |

### getZone

Required. Immutable. Name of the zone in which VM instances should run,
e.g., `us-central1-a`. Must be in the same region as the cluster, and must
match the zone of any other resources specified in the cluster.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setZone

Required. Immutable. Name of the zone in which VM instances should run,
e.g., `us-central1-a`. Must be in the same region as the cluster, and must
match the zone of any other resources specified in the cluster.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMachineType

Required. Immutable. Name of the Compute Engine [machine
type](https://cloud.google.com/compute/docs/machine-resource) to use, e.g.

`n2-standard-2`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setMachineType

Required. Immutable. Name of the Compute Engine [machine
type](https://cloud.google.com/compute/docs/machine-resource) to use, e.g.

`n2-standard-2`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMaxDuration

Required. Immutable. Specifies the time limit for created instances.

Instances will be terminated at the end of this duration.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration|null` |   |

### hasMaxDuration

### clearMaxDuration

### setMaxDuration

Required. Immutable. Specifies the time limit for created instances.

Instances will be terminated at the end of this duration.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |