Class FirestoreFieldConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.firestore_field.FirestoreFieldConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<FirestoreFieldConfig>
- Enclosing interface:
- FirestoreFieldConfig
@Stability(Stable) public static final class FirestoreFieldConfig.Builder extends Object implements software.amazon.jsii.Builder<FirestoreFieldConfig>
A builder forFirestoreFieldConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FirestoreFieldConfigbuild()Builds the configured instance.FirestoreFieldConfig.Buildercollection(String collection)Sets the value ofFirestoreFieldConfig.getCollection()FirestoreFieldConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()FirestoreFieldConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()FirestoreFieldConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()FirestoreFieldConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()FirestoreFieldConfig.Builderdatabase(String database)Sets the value ofFirestoreFieldConfig.getDatabase()FirestoreFieldConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()FirestoreFieldConfig.Builderfield(String field)Sets the value ofFirestoreFieldConfig.getField()FirestoreFieldConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()FirestoreFieldConfig.Builderid(String id)Sets the value ofFirestoreFieldConfig.getId()FirestoreFieldConfig.BuilderindexConfig(FirestoreFieldIndexConfig indexConfig)Sets the value ofFirestoreFieldConfig.getIndexConfig()FirestoreFieldConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()FirestoreFieldConfig.Builderproject(String project)Sets the value ofFirestoreFieldConfig.getProject()FirestoreFieldConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()FirestoreFieldConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()FirestoreFieldConfig.Buildertimeouts(FirestoreFieldTimeouts timeouts)Sets the value ofFirestoreFieldConfig.getTimeouts()FirestoreFieldConfig.BuilderttlConfig(FirestoreFieldTtlConfig ttlConfig)Sets the value ofFirestoreFieldConfig.getTtlConfig()
-
-
-
Method Detail
-
collection
@Stability(Stable) public FirestoreFieldConfig.Builder collection(String collection)
Sets the value ofFirestoreFieldConfig.getCollection()- Parameters:
collection- The id of the collection group to configure. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/firestore_field#collection FirestoreField#collection}- Returns:
this
-
field
@Stability(Stable) public FirestoreFieldConfig.Builder field(String field)
Sets the value ofFirestoreFieldConfig.getField()- Parameters:
field- The id of the field to configure. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/firestore_field#field FirestoreField#field}- Returns:
this
-
database
@Stability(Stable) public FirestoreFieldConfig.Builder database(String database)
Sets the value ofFirestoreFieldConfig.getDatabase()- Parameters:
database- The Firestore database id. Defaults to '"(default)"'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/firestore_field#database FirestoreField#database}- Returns:
this
-
id
@Stability(Stable) public FirestoreFieldConfig.Builder id(String id)
Sets the value ofFirestoreFieldConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/firestore_field#id FirestoreField#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.- Returns:
this
-
indexConfig
@Stability(Stable) public FirestoreFieldConfig.Builder indexConfig(FirestoreFieldIndexConfig indexConfig)
Sets the value ofFirestoreFieldConfig.getIndexConfig()- Parameters:
indexConfig- index_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/firestore_field#index_config FirestoreField#index_config}- Returns:
this
-
project
@Stability(Stable) public FirestoreFieldConfig.Builder project(String project)
Sets the value ofFirestoreFieldConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/firestore_field#project FirestoreField#project}.- Returns:
this
-
timeouts
@Stability(Stable) public FirestoreFieldConfig.Builder timeouts(FirestoreFieldTimeouts timeouts)
Sets the value ofFirestoreFieldConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/firestore_field#timeouts FirestoreField#timeouts}- Returns:
this
-
ttlConfig
@Stability(Stable) public FirestoreFieldConfig.Builder ttlConfig(FirestoreFieldTtlConfig ttlConfig)
Sets the value ofFirestoreFieldConfig.getTtlConfig()- Parameters:
ttlConfig- ttl_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/firestore_field#ttl_config FirestoreField#ttl_config}- Returns:
this
-
connection
@Stability(Experimental) public FirestoreFieldConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public FirestoreFieldConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public FirestoreFieldConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public FirestoreFieldConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public FirestoreFieldConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public FirestoreFieldConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public FirestoreFieldConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public FirestoreFieldConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public FirestoreFieldConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public FirestoreFieldConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<FirestoreFieldConfig>- Returns:
- a new instance of
FirestoreFieldConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-