Class MemcacheInstanceNodeConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.memcache_instance.MemcacheInstanceNodeConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<MemcacheInstanceNodeConfig>
- Enclosing interface:
- MemcacheInstanceNodeConfig
@Stability(Stable) public static final class MemcacheInstanceNodeConfig.Builder extends Object implements software.amazon.jsii.Builder<MemcacheInstanceNodeConfig>
A builder forMemcacheInstanceNodeConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MemcacheInstanceNodeConfigbuild()Builds the configured instance.MemcacheInstanceNodeConfig.BuildercpuCount(Number cpuCount)Sets the value ofMemcacheInstanceNodeConfig.getCpuCount()MemcacheInstanceNodeConfig.BuildermemorySizeMb(Number memorySizeMb)Sets the value ofMemcacheInstanceNodeConfig.getMemorySizeMb()
-
-
-
Method Detail
-
cpuCount
@Stability(Stable) public MemcacheInstanceNodeConfig.Builder cpuCount(Number cpuCount)
Sets the value ofMemcacheInstanceNodeConfig.getCpuCount()- Parameters:
cpuCount- Number of CPUs per node. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/memcache_instance#cpu_count MemcacheInstance#cpu_count}- Returns:
this
-
memorySizeMb
@Stability(Stable) public MemcacheInstanceNodeConfig.Builder memorySizeMb(Number memorySizeMb)
Sets the value ofMemcacheInstanceNodeConfig.getMemorySizeMb()- Parameters:
memorySizeMb- Memory size in Mebibytes for each memcache node. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/memcache_instance#memory_size_mb MemcacheInstance#memory_size_mb}- Returns:
this
-
build
@Stability(Stable) public MemcacheInstanceNodeConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<MemcacheInstanceNodeConfig>- Returns:
- a new instance of
MemcacheInstanceNodeConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-