Class DatastreamStreamConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.datastream_stream.DatastreamStreamConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DatastreamStreamConfig>
- Enclosing interface:
- DatastreamStreamConfig
@Stability(Stable) public static final class DatastreamStreamConfig.Builder extends Object implements software.amazon.jsii.Builder<DatastreamStreamConfig>
A builder forDatastreamStreamConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
destinationConfig
@Stability(Stable) public DatastreamStreamConfig.Builder destinationConfig(DatastreamStreamDestinationConfig destinationConfig)
Sets the value ofDatastreamStreamConfig.getDestinationConfig()- Parameters:
destinationConfig- destination_config block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/datastream_stream#destination_config DatastreamStream#destination_config}- Returns:
this
-
displayName
@Stability(Stable) public DatastreamStreamConfig.Builder displayName(String displayName)
Sets the value ofDatastreamStreamConfig.getDisplayName()- Parameters:
displayName- Display name. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/datastream_stream#display_name DatastreamStream#display_name}- Returns:
this
-
location
@Stability(Stable) public DatastreamStreamConfig.Builder location(String location)
Sets the value ofDatastreamStreamConfig.getLocation()- Parameters:
location- The name of the location this stream is located in. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/datastream_stream#location DatastreamStream#location}- Returns:
this
-
sourceConfig
@Stability(Stable) public DatastreamStreamConfig.Builder sourceConfig(DatastreamStreamSourceConfig sourceConfig)
Sets the value ofDatastreamStreamConfig.getSourceConfig()- Parameters:
sourceConfig- source_config block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/datastream_stream#source_config DatastreamStream#source_config}- Returns:
this
-
streamId
@Stability(Stable) public DatastreamStreamConfig.Builder streamId(String streamId)
Sets the value ofDatastreamStreamConfig.getStreamId()- Parameters:
streamId- The stream identifier. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/datastream_stream#stream_id DatastreamStream#stream_id}- Returns:
this
-
backfillAll
@Stability(Stable) public DatastreamStreamConfig.Builder backfillAll(DatastreamStreamBackfillAll backfillAll)
Sets the value ofDatastreamStreamConfig.getBackfillAll()- Parameters:
backfillAll- backfill_all block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/datastream_stream#backfill_all DatastreamStream#backfill_all}- Returns:
this
-
backfillNone
@Stability(Stable) public DatastreamStreamConfig.Builder backfillNone(DatastreamStreamBackfillNone backfillNone)
Sets the value ofDatastreamStreamConfig.getBackfillNone()- Parameters:
backfillNone- backfill_none block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/datastream_stream#backfill_none DatastreamStream#backfill_none}- Returns:
this
-
createWithoutValidation
@Stability(Stable) public DatastreamStreamConfig.Builder createWithoutValidation(Boolean createWithoutValidation)
Sets the value ofDatastreamStreamConfig.getCreateWithoutValidation()- Parameters:
createWithoutValidation- Create the stream without validating it. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/datastream_stream#create_without_validation DatastreamStream#create_without_validation}- Returns:
this
-
createWithoutValidation
@Stability(Stable) public DatastreamStreamConfig.Builder createWithoutValidation(com.hashicorp.cdktf.IResolvable createWithoutValidation)
Sets the value ofDatastreamStreamConfig.getCreateWithoutValidation()- Parameters:
createWithoutValidation- Create the stream without validating it. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/datastream_stream#create_without_validation DatastreamStream#create_without_validation}- Returns:
this
-
customerManagedEncryptionKey
@Stability(Stable) public DatastreamStreamConfig.Builder customerManagedEncryptionKey(String customerManagedEncryptionKey)
Sets the value ofDatastreamStreamConfig.getCustomerManagedEncryptionKey()- Parameters:
customerManagedEncryptionKey- A reference to a KMS encryption key. If provided, it will be used to encrypt the data. If left blank, data will be encrypted using an internal Stream-specific encryption key provisioned through KMS. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/datastream_stream#customer_managed_encryption_key DatastreamStream#customer_managed_encryption_key}- Returns:
this
-
desiredState
@Stability(Stable) public DatastreamStreamConfig.Builder desiredState(String desiredState)
Sets the value ofDatastreamStreamConfig.getDesiredState()- Parameters:
desiredState- Desired state of the Stream. Set this field to 'RUNNING' to start the stream, and 'PAUSED' to pause the stream. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/datastream_stream#desired_state DatastreamStream#desired_state}- Returns:
this
-
id
@Stability(Stable) public DatastreamStreamConfig.Builder id(String id)
Sets the value ofDatastreamStreamConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/datastream_stream#id DatastreamStream#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
-
labels
@Stability(Stable) public DatastreamStreamConfig.Builder labels(Map<String,String> labels)
Sets the value ofDatastreamStreamConfig.getLabels()- Parameters:
labels- Labels. **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/datastream_stream#labels DatastreamStream#labels}- Returns:
this
-
project
@Stability(Stable) public DatastreamStreamConfig.Builder project(String project)
Sets the value ofDatastreamStreamConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/datastream_stream#project DatastreamStream#project}.- Returns:
this
-
timeouts
@Stability(Stable) public DatastreamStreamConfig.Builder timeouts(DatastreamStreamTimeouts timeouts)
Sets the value ofDatastreamStreamConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/datastream_stream#timeouts DatastreamStream#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public DatastreamStreamConfig.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 DatastreamStreamConfig.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 DatastreamStreamConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public DatastreamStreamConfig.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 DatastreamStreamConfig.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 DatastreamStreamConfig.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 DatastreamStreamConfig.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 DatastreamStreamConfig.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 DatastreamStreamConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public DatastreamStreamConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DatastreamStreamConfig>- Returns:
- a new instance of
DatastreamStreamConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-