Class CloudfunctionsFunctionEventTrigger.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloudfunctions_function.CloudfunctionsFunctionEventTrigger.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudfunctionsFunctionEventTrigger>
- Enclosing interface:
- CloudfunctionsFunctionEventTrigger
@Stability(Stable) public static final class CloudfunctionsFunctionEventTrigger.Builder extends Object implements software.amazon.jsii.Builder<CloudfunctionsFunctionEventTrigger>
A builder forCloudfunctionsFunctionEventTrigger
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudfunctionsFunctionEventTriggerbuild()Builds the configured instance.CloudfunctionsFunctionEventTrigger.BuildereventType(String eventType)Sets the value ofCloudfunctionsFunctionEventTrigger.getEventType()CloudfunctionsFunctionEventTrigger.BuilderfailurePolicy(CloudfunctionsFunctionEventTriggerFailurePolicy failurePolicy)Sets the value ofCloudfunctionsFunctionEventTrigger.getFailurePolicy()CloudfunctionsFunctionEventTrigger.Builderresource(String resource)Sets the value ofCloudfunctionsFunctionEventTrigger.getResource()
-
-
-
Method Detail
-
eventType
@Stability(Stable) public CloudfunctionsFunctionEventTrigger.Builder eventType(String eventType)
Sets the value ofCloudfunctionsFunctionEventTrigger.getEventType()- Parameters:
eventType- The type of event to observe. This parameter is required. For example: "google.storage.object.finalize". See the documentation on calling Cloud Functions for a full reference of accepted triggers. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions_function#event_type CloudfunctionsFunction#event_type}- Returns:
this
-
resource
@Stability(Stable) public CloudfunctionsFunctionEventTrigger.Builder resource(String resource)
Sets the value ofCloudfunctionsFunctionEventTrigger.getResource()- Parameters:
resource- The name or partial URI of the resource from which to observe events. For example, "myBucket" or "projects/my-project/topics/my-topic". This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions_function#resource CloudfunctionsFunction#resource}- Returns:
this
-
failurePolicy
@Stability(Stable) public CloudfunctionsFunctionEventTrigger.Builder failurePolicy(CloudfunctionsFunctionEventTriggerFailurePolicy failurePolicy)
Sets the value ofCloudfunctionsFunctionEventTrigger.getFailurePolicy()- Parameters:
failurePolicy- failure_policy block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions_function#failure_policy CloudfunctionsFunction#failure_policy}- Returns:
this
-
build
@Stability(Stable) public CloudfunctionsFunctionEventTrigger build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudfunctionsFunctionEventTrigger>- Returns:
- a new instance of
CloudfunctionsFunctionEventTrigger - Throws:
NullPointerException- if any required attribute was not provided
-
-