Class EventarcTriggerMatchingCriteria.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.eventarc_trigger.EventarcTriggerMatchingCriteria.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<EventarcTriggerMatchingCriteria>
- Enclosing interface:
- EventarcTriggerMatchingCriteria
@Stability(Stable) public static final class EventarcTriggerMatchingCriteria.Builder extends Object implements software.amazon.jsii.Builder<EventarcTriggerMatchingCriteria>
A builder forEventarcTriggerMatchingCriteria
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventarcTriggerMatchingCriteria.Builderattribute(String attribute)Sets the value ofEventarcTriggerMatchingCriteria.getAttribute()EventarcTriggerMatchingCriteriabuild()Builds the configured instance.EventarcTriggerMatchingCriteria.Builderoperator(String operator)Sets the value ofEventarcTriggerMatchingCriteria.getOperator()EventarcTriggerMatchingCriteria.Buildervalue(String value)Sets the value ofEventarcTriggerMatchingCriteria.getValue()
-
-
-
Method Detail
-
attribute
@Stability(Stable) public EventarcTriggerMatchingCriteria.Builder attribute(String attribute)
Sets the value ofEventarcTriggerMatchingCriteria.getAttribute()- Parameters:
attribute- Required. This parameter is required. The name of a CloudEvents attribute. Currently, only a subset of attributes are supported for filtering. All triggers MUST provide a filter for the 'type' attribute. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_trigger#attribute EventarcTrigger#attribute}- Returns:
this
-
value
@Stability(Stable) public EventarcTriggerMatchingCriteria.Builder value(String value)
Sets the value ofEventarcTriggerMatchingCriteria.getValue()- Parameters:
value- Required. The value for the attribute. See https://cloud.google.com/eventarc/docs/creating-triggers#trigger-gcloud for available values. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_trigger#value EventarcTrigger#value}- Returns:
this
-
operator
@Stability(Stable) public EventarcTriggerMatchingCriteria.Builder operator(String operator)
Sets the value ofEventarcTriggerMatchingCriteria.getOperator()- Parameters:
operator- Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is `match-path-pattern`. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_trigger#operator EventarcTrigger#operator}- Returns:
this
-
build
@Stability(Stable) public EventarcTriggerMatchingCriteria build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EventarcTriggerMatchingCriteria>- Returns:
- a new instance of
EventarcTriggerMatchingCriteria - Throws:
NullPointerException- if any required attribute was not provided
-
-