Class EventarcTriggerConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.eventarc_trigger.EventarcTriggerConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<EventarcTriggerConfig>
- Enclosing interface:
- EventarcTriggerConfig
@Stability(Stable) public static final class EventarcTriggerConfig.Builder extends Object implements software.amazon.jsii.Builder<EventarcTriggerConfig>
A builder forEventarcTriggerConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
destination
@Stability(Stable) public EventarcTriggerConfig.Builder destination(EventarcTriggerDestination destination)
Sets the value ofEventarcTriggerConfig.getDestination()- Parameters:
destination- destination block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_trigger#destination EventarcTrigger#destination}- Returns:
this
-
location
@Stability(Stable) public EventarcTriggerConfig.Builder location(String location)
Sets the value ofEventarcTriggerConfig.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_trigger#location EventarcTrigger#location}- Returns:
this
-
matchingCriteria
@Stability(Stable) public EventarcTriggerConfig.Builder matchingCriteria(com.hashicorp.cdktf.IResolvable matchingCriteria)
Sets the value ofEventarcTriggerConfig.getMatchingCriteria()- Parameters:
matchingCriteria- matching_criteria block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_trigger#matching_criteria EventarcTrigger#matching_criteria}- Returns:
this
-
matchingCriteria
@Stability(Stable) public EventarcTriggerConfig.Builder matchingCriteria(List<? extends EventarcTriggerMatchingCriteria> matchingCriteria)
Sets the value ofEventarcTriggerConfig.getMatchingCriteria()- Parameters:
matchingCriteria- matching_criteria block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_trigger#matching_criteria EventarcTrigger#matching_criteria}- Returns:
this
-
name
@Stability(Stable) public EventarcTriggerConfig.Builder name(String name)
Sets the value ofEventarcTriggerConfig.getName()- Parameters:
name- Required. The resource name of the trigger. 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_trigger#name EventarcTrigger#name}- Returns:
this
-
channel
@Stability(Stable) public EventarcTriggerConfig.Builder channel(String channel)
Sets the value ofEventarcTriggerConfig.getChannel()- Parameters:
channel- Optional. The name of the channel associated with the trigger in `projects/{project}/locations/{location}/channels/{channel}` format. You must provide a channel to receive events from Eventarc SaaS partners. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_trigger#channel EventarcTrigger#channel}- Returns:
this
-
eventDataContentType
@Stability(Stable) public EventarcTriggerConfig.Builder eventDataContentType(String eventDataContentType)
Sets the value ofEventarcTriggerConfig.getEventDataContentType()- Parameters:
eventDataContentType- Optional. EventDataContentType specifies the type of payload in MIME format that is expected from the CloudEvent data field. This is set to `application/json` if the value is not defined. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_trigger#event_data_content_type EventarcTrigger#event_data_content_type}- Returns:
this
-
id
@Stability(Stable) public EventarcTriggerConfig.Builder id(String id)
Sets the value ofEventarcTriggerConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_trigger#id EventarcTrigger#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 EventarcTriggerConfig.Builder labels(Map<String,String> labels)
Sets the value ofEventarcTriggerConfig.getLabels()- Parameters:
labels- Optional. User labels attached to the triggers that can be used to group resources. **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/eventarc_trigger#labels EventarcTrigger#labels}- Returns:
this
-
project
@Stability(Stable) public EventarcTriggerConfig.Builder project(String project)
Sets the value ofEventarcTriggerConfig.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_trigger#project EventarcTrigger#project}- Returns:
this
-
serviceAccount
@Stability(Stable) public EventarcTriggerConfig.Builder serviceAccount(String serviceAccount)
Sets the value ofEventarcTriggerConfig.getServiceAccount()- Parameters:
serviceAccount- Optional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger. The principal who calls this API must have `iam.serviceAccounts.actAs` permission in the service account. See https://cloud.google.com/iam/docs/understanding-service-accounts#sa_common for more information. For Cloud Run destinations, this service account is used to generate identity tokens when invoking the service. See https://cloud.google.com/run/docs/triggering/pubsub-push#create-service-account for information on how to invoke authenticated Cloud Run services. In order to create Audit Log triggers, the service account should also have `roles/eventarc.eventReceiver` IAM role. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_trigger#service_account EventarcTrigger#service_account}- Returns:
this
-
timeouts
@Stability(Stable) public EventarcTriggerConfig.Builder timeouts(EventarcTriggerTimeouts timeouts)
Sets the value ofEventarcTriggerConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_trigger#timeouts EventarcTrigger#timeouts}- Returns:
this
-
transport
@Stability(Stable) public EventarcTriggerConfig.Builder transport(EventarcTriggerTransport transport)
Sets the value ofEventarcTriggerConfig.getTransport()- Parameters:
transport- transport block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_trigger#transport EventarcTrigger#transport}- Returns:
this
-
connection
@Stability(Experimental) public EventarcTriggerConfig.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 EventarcTriggerConfig.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 EventarcTriggerConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public EventarcTriggerConfig.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 EventarcTriggerConfig.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 EventarcTriggerConfig.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 EventarcTriggerConfig.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 EventarcTriggerConfig.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 EventarcTriggerConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public EventarcTriggerConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EventarcTriggerConfig>- Returns:
- a new instance of
EventarcTriggerConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-