# Managed Service for Apache Kafka V1 API - Class Google::Cloud::ManagedKafka::V1::CreateClusterRequest (v1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.0 1.1.2 1.0.1 0.5.0 0.4.0 0.3.0 0.2.0 0.1.3 Reference documentation and code samples for the Managed Service for Apache Kafka V1 API class Google::Cloud::ManagedKafka::V1::CreateClusterRequest.

Request for CreateCluster.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #cluster

    def cluster() -> ::Google::Cloud::ManagedKafka::V1::Cluster

**Returns**

- ([::Google::Cloud::ManagedKafka::V1::Cluster](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-v1/latest/Google-Cloud-ManagedKafka-V1-Cluster)) --- Required. Configuration of the cluster to create. Its `name` field is ignored.

### #cluster=

    def cluster=(value) -> ::Google::Cloud::ManagedKafka::V1::Cluster

**Parameter**

- **value** ([::Google::Cloud::ManagedKafka::V1::Cluster](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-v1/latest/Google-Cloud-ManagedKafka-V1-Cluster)) --- Required. Configuration of the cluster to create. Its `name` field is ignored.
**Returns**

- ([::Google::Cloud::ManagedKafka::V1::Cluster](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-v1/latest/Google-Cloud-ManagedKafka-V1-Cluster)) --- Required. Configuration of the cluster to create. Its `name` field is ignored.

### #cluster_id

    def cluster_id() -> ::String

**Returns**

- (::String) --- Required. The ID to use for the cluster, which will become the final component of the cluster's name. The ID must be 1-63 characters long, and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` to comply with RFC 1035.


  This value is structured like: `my-cluster-id`.

### #cluster_id=

    def cluster_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The ID to use for the cluster, which will become the final component of the cluster's name. The ID must be 1-63 characters long, and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` to comply with RFC 1035.


  This value is structured like: `my-cluster-id`.
**Returns**

- (::String) --- Required. The ID to use for the cluster, which will become the final component of the cluster's name. The ID must be 1-63 characters long, and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` to comply with RFC 1035.


  This value is structured like: `my-cluster-id`.

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- Required. The parent region in which to create the cluster. Structured like `projects/{project}/locations/{location}`.

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The parent region in which to create the cluster. Structured like `projects/{project}/locations/{location}`.
**Returns**

- (::String) --- Required. The parent region in which to create the cluster. Structured like `projects/{project}/locations/{location}`.

### #request_id

    def request_id() -> ::String

**Returns**

- (::String) --- Optional. An optional request ID to identify requests. Specify a unique request ID to avoid duplication of requests. If a request times out or fails, retrying with the same ID allows the server to recognize the previous attempt. For at least 60 minutes, the server ignores duplicate requests bearing the same ID.

  For example, consider a situation where you make an initial request and the
  request times out. If you make the request again with the same request ID
  within 60 minutes of the last request, the server checks if an original
  operation with the same request ID was received. If so, the server ignores
  the second request.

  The request ID must be a valid UUID. A zero UUID is not supported
  (00000000-0000-0000-0000-000000000000).

### #request_id=

    def request_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. An optional request ID to identify requests. Specify a unique request ID to avoid duplication of requests. If a request times out or fails, retrying with the same ID allows the server to recognize the previous attempt. For at least 60 minutes, the server ignores duplicate requests bearing the same ID.


  For example, consider a situation where you make an initial request and the
  request times out. If you make the request again with the same request ID
  within 60 minutes of the last request, the server checks if an original
  operation with the same request ID was received. If so, the server ignores
  the second request.

  The request ID must be a valid UUID. A zero UUID is not supported
  (00000000-0000-0000-0000-000000000000).
**Returns**

- (::String) --- Optional. An optional request ID to identify requests. Specify a unique request ID to avoid duplication of requests. If a request times out or fails, retrying with the same ID allows the server to recognize the previous attempt. For at least 60 minutes, the server ignores duplicate requests bearing the same ID.

  For example, consider a situation where you make an initial request and the
  request times out. If you make the request again with the same request ID
  within 60 minutes of the last request, the server checks if an original
  operation with the same request ID was received. If so, the server ignores
  the second request.

  The request ID must be a valid UUID. A zero UUID is not supported
  (00000000-0000-0000-0000-000000000000).