Class SpannerInstanceConfigReplicas.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.spanner_instance_config.SpannerInstanceConfigReplicas.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SpannerInstanceConfigReplicas>
- Enclosing interface:
- SpannerInstanceConfigReplicas
@Stability(Stable) public static final class SpannerInstanceConfigReplicas.Builder extends Object implements software.amazon.jsii.Builder<SpannerInstanceConfigReplicas>
A builder forSpannerInstanceConfigReplicas
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpannerInstanceConfigReplicasbuild()Builds the configured instance.SpannerInstanceConfigReplicas.BuilderdefaultLeaderLocation(com.hashicorp.cdktf.IResolvable defaultLeaderLocation)Sets the value ofSpannerInstanceConfigReplicas.getDefaultLeaderLocation()SpannerInstanceConfigReplicas.BuilderdefaultLeaderLocation(Boolean defaultLeaderLocation)Sets the value ofSpannerInstanceConfigReplicas.getDefaultLeaderLocation()SpannerInstanceConfigReplicas.Builderlocation(String location)Sets the value ofSpannerInstanceConfigReplicas.getLocation()SpannerInstanceConfigReplicas.Buildertype(String type)Sets the value ofSpannerInstanceConfigReplicas.getType()
-
-
-
Method Detail
-
defaultLeaderLocation
@Stability(Stable) public SpannerInstanceConfigReplicas.Builder defaultLeaderLocation(Boolean defaultLeaderLocation)
Sets the value ofSpannerInstanceConfigReplicas.getDefaultLeaderLocation()- Parameters:
defaultLeaderLocation- If true, this location is designated as the default leader location where leader replicas are placed. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/spanner_instance_config#default_leader_location SpannerInstanceConfigA#default_leader_location}- Returns:
this
-
defaultLeaderLocation
@Stability(Stable) public SpannerInstanceConfigReplicas.Builder defaultLeaderLocation(com.hashicorp.cdktf.IResolvable defaultLeaderLocation)
Sets the value ofSpannerInstanceConfigReplicas.getDefaultLeaderLocation()- Parameters:
defaultLeaderLocation- If true, this location is designated as the default leader location where leader replicas are placed. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/spanner_instance_config#default_leader_location SpannerInstanceConfigA#default_leader_location}- Returns:
this
-
location
@Stability(Stable) public SpannerInstanceConfigReplicas.Builder location(String location)
Sets the value ofSpannerInstanceConfigReplicas.getLocation()- Parameters:
location- The location of the serving resources, e.g. "us-central1". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/spanner_instance_config#location SpannerInstanceConfigA#location}- Returns:
this
-
type
@Stability(Stable) public SpannerInstanceConfigReplicas.Builder type(String type)
Sets the value ofSpannerInstanceConfigReplicas.getType()- Parameters:
type- Indicates the type of replica. See the replica types documentation for more details. Possible values: ["READ_WRITE", "READ_ONLY", "WITNESS"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/spanner_instance_config#type SpannerInstanceConfigA#type}- Returns:
this
-
build
@Stability(Stable) public SpannerInstanceConfigReplicas build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SpannerInstanceConfigReplicas>- Returns:
- a new instance of
SpannerInstanceConfigReplicas - Throws:
NullPointerException- if any required attribute was not provided
-
-