Class StoragegatewayCacheConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.storagegateway_cache.StoragegatewayCacheConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<StoragegatewayCacheConfig>
- Enclosing interface:
- StoragegatewayCacheConfig
@Stability(Stable) public static final class StoragegatewayCacheConfig.Builder extends Object implements software.amazon.jsii.Builder<StoragegatewayCacheConfig>
A builder forStoragegatewayCacheConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StoragegatewayCacheConfigbuild()Builds the configured instance.StoragegatewayCacheConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()StoragegatewayCacheConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()StoragegatewayCacheConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()StoragegatewayCacheConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()StoragegatewayCacheConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()StoragegatewayCacheConfig.BuilderdiskId(String diskId)Sets the value ofStoragegatewayCacheConfig.getDiskId()StoragegatewayCacheConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()StoragegatewayCacheConfig.BuildergatewayArn(String gatewayArn)Sets the value ofStoragegatewayCacheConfig.getGatewayArn()StoragegatewayCacheConfig.Builderid(String id)Sets the value ofStoragegatewayCacheConfig.getId()StoragegatewayCacheConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()StoragegatewayCacheConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()StoragegatewayCacheConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()
-
-
-
Method Detail
-
diskId
@Stability(Stable) public StoragegatewayCacheConfig.Builder diskId(String diskId)
Sets the value ofStoragegatewayCacheConfig.getDiskId()- Parameters:
diskId- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/storagegateway_cache#disk_id StoragegatewayCache#disk_id}. This parameter is required.- Returns:
this
-
gatewayArn
@Stability(Stable) public StoragegatewayCacheConfig.Builder gatewayArn(String gatewayArn)
Sets the value ofStoragegatewayCacheConfig.getGatewayArn()- Parameters:
gatewayArn- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/storagegateway_cache#gateway_arn StoragegatewayCache#gateway_arn}. This parameter is required.- Returns:
this
-
id
@Stability(Stable) public StoragegatewayCacheConfig.Builder id(String id)
Sets the value ofStoragegatewayCacheConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/storagegateway_cache#id StoragegatewayCache#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
-
connection
@Stability(Experimental) public StoragegatewayCacheConfig.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 StoragegatewayCacheConfig.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 StoragegatewayCacheConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public StoragegatewayCacheConfig.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 StoragegatewayCacheConfig.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 StoragegatewayCacheConfig.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 StoragegatewayCacheConfig.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 StoragegatewayCacheConfig.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 StoragegatewayCacheConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public StoragegatewayCacheConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<StoragegatewayCacheConfig>- Returns:
- a new instance of
StoragegatewayCacheConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-