# Managed Service for Apache Kafka V1 API - Class Google::Cloud::ManagedKafka::V1::CapacityConfig (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::CapacityConfig.

A capacity configuration of a Kafka cluster.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #memory_bytes

    def memory_bytes() -> ::Integer

**Returns**

- (::Integer) --- Required. The memory to provision for the cluster in bytes. The CPU:memory ratio (vCPU:GiB) must be between 1:1 and 1:8. Minimum: 3221225472 (3 GiB).

### #memory_bytes=

    def memory_bytes=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Required. The memory to provision for the cluster in bytes. The CPU:memory ratio (vCPU:GiB) must be between 1:1 and 1:8. Minimum: 3221225472 (3 GiB).
**Returns**

- (::Integer) --- Required. The memory to provision for the cluster in bytes. The CPU:memory ratio (vCPU:GiB) must be between 1:1 and 1:8. Minimum: 3221225472 (3 GiB).

### #vcpu_count

    def vcpu_count() -> ::Integer

**Returns**

- (::Integer) --- Required. The number of vCPUs to provision for the cluster. Minimum: 3.

### #vcpu_count=

    def vcpu_count=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Required. The number of vCPUs to provision for the cluster. Minimum: 3.
**Returns**

- (::Integer) --- Required. The number of vCPUs to provision for the cluster. Minimum: 3.