Class EventarcChannelConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.eventarc_channel.EventarcChannelConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<EventarcChannelConfig>
- Enclosing interface:
- EventarcChannelConfig
@Stability(Stable) public static final class EventarcChannelConfig.Builder extends Object implements software.amazon.jsii.Builder<EventarcChannelConfig>
A builder forEventarcChannelConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventarcChannelConfigbuild()Builds the configured instance.EventarcChannelConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()EventarcChannelConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()EventarcChannelConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()EventarcChannelConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()EventarcChannelConfig.BuildercryptoKeyName(String cryptoKeyName)Sets the value ofEventarcChannelConfig.getCryptoKeyName()EventarcChannelConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()EventarcChannelConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()EventarcChannelConfig.Builderid(String id)Sets the value ofEventarcChannelConfig.getId()EventarcChannelConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()EventarcChannelConfig.Builderlocation(String location)Sets the value ofEventarcChannelConfig.getLocation()EventarcChannelConfig.Buildername(String name)Sets the value ofEventarcChannelConfig.getName()EventarcChannelConfig.Builderproject(String project)Sets the value ofEventarcChannelConfig.getProject()EventarcChannelConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()EventarcChannelConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()EventarcChannelConfig.BuilderthirdPartyProvider(String thirdPartyProvider)Sets the value ofEventarcChannelConfig.getThirdPartyProvider()EventarcChannelConfig.Buildertimeouts(EventarcChannelTimeouts timeouts)Sets the value ofEventarcChannelConfig.getTimeouts()
-
-
-
Method Detail
-
location
@Stability(Stable) public EventarcChannelConfig.Builder location(String location)
Sets the value ofEventarcChannelConfig.getLocation()- Parameters:
location- The location for the resource. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_channel#location EventarcChannel#location}- Returns:
this
-
name
@Stability(Stable) public EventarcChannelConfig.Builder name(String name)
Sets the value ofEventarcChannelConfig.getName()- Parameters:
name- Required. The resource name of the channel. Must be unique within the location on the project. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_channel#name EventarcChannel#name}- Returns:
this
-
cryptoKeyName
@Stability(Stable) public EventarcChannelConfig.Builder cryptoKeyName(String cryptoKeyName)
Sets the value ofEventarcChannelConfig.getCryptoKeyName()- Parameters:
cryptoKeyName- Optional. Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt their event data. It must match the pattern `projects/* /locations/* /keyRings/* /cryptoKeys/*`. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_channel#crypto_key_name EventarcChannel#crypto_key_name} Note: The above comment contained a comment block ending sequence (* followed by /). We have introduced a space between to prevent syntax errors. Please ignore the space.- Returns:
this
-
id
@Stability(Stable) public EventarcChannelConfig.Builder id(String id)
Sets the value ofEventarcChannelConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_channel#id EventarcChannel#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
-
project
@Stability(Stable) public EventarcChannelConfig.Builder project(String project)
Sets the value ofEventarcChannelConfig.getProject()- Parameters:
project- The project for the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_channel#project EventarcChannel#project}- Returns:
this
-
thirdPartyProvider
@Stability(Stable) public EventarcChannelConfig.Builder thirdPartyProvider(String thirdPartyProvider)
Sets the value ofEventarcChannelConfig.getThirdPartyProvider()- Parameters:
thirdPartyProvider- The name of the event provider (e.g. Eventarc SaaS partner) associated with the channel. This provider will be granted permissions to publish events to the channel. Format:projects/{project}/locations/{location}/providers/{provider_id}. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_channel#third_party_provider EventarcChannel#third_party_provider}- Returns:
this
-
timeouts
@Stability(Stable) public EventarcChannelConfig.Builder timeouts(EventarcChannelTimeouts timeouts)
Sets the value ofEventarcChannelConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_channel#timeouts EventarcChannel#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public EventarcChannelConfig.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 EventarcChannelConfig.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 EventarcChannelConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public EventarcChannelConfig.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 EventarcChannelConfig.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 EventarcChannelConfig.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 EventarcChannelConfig.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 EventarcChannelConfig.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 EventarcChannelConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public EventarcChannelConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EventarcChannelConfig>- Returns:
- a new instance of
EventarcChannelConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-