Class EventarcTriggerDestinationGke.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.eventarc_trigger.EventarcTriggerDestinationGke.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<EventarcTriggerDestinationGke>
- Enclosing interface:
- EventarcTriggerDestinationGke
@Stability(Stable) public static final class EventarcTriggerDestinationGke.Builder extends Object implements software.amazon.jsii.Builder<EventarcTriggerDestinationGke>
A builder forEventarcTriggerDestinationGke
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventarcTriggerDestinationGkebuild()Builds the configured instance.EventarcTriggerDestinationGke.Buildercluster(String cluster)Sets the value ofEventarcTriggerDestinationGke.getCluster()EventarcTriggerDestinationGke.Builderlocation(String location)Sets the value ofEventarcTriggerDestinationGke.getLocation()EventarcTriggerDestinationGke.Buildernamespace(String namespace)Sets the value ofEventarcTriggerDestinationGke.getNamespace()EventarcTriggerDestinationGke.Builderpath(String path)Sets the value ofEventarcTriggerDestinationGke.getPath()EventarcTriggerDestinationGke.Builderservice(String service)Sets the value ofEventarcTriggerDestinationGke.getService()
-
-
-
Method Detail
-
cluster
@Stability(Stable) public EventarcTriggerDestinationGke.Builder cluster(String cluster)
Sets the value ofEventarcTriggerDestinationGke.getCluster()- Parameters:
cluster- Required. This parameter is required. The name of the cluster the GKE service is running in. The cluster must be running in the same project as the trigger being created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_trigger#cluster EventarcTrigger#cluster}- Returns:
this
-
location
@Stability(Stable) public EventarcTriggerDestinationGke.Builder location(String location)
Sets the value ofEventarcTriggerDestinationGke.getLocation()- Parameters:
location- Required. This parameter is required. The name of the Google Compute Engine in which the cluster resides, which can either be compute zone (for example, us-central1-a) for the zonal clusters or region (for example, us-central1) for regional clusters. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_trigger#location EventarcTrigger#location}- Returns:
this
-
namespace
@Stability(Stable) public EventarcTriggerDestinationGke.Builder namespace(String namespace)
Sets the value ofEventarcTriggerDestinationGke.getNamespace()- Parameters:
namespace- Required. The namespace the GKE service is running in. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_trigger#namespace EventarcTrigger#namespace}- Returns:
this
-
service
@Stability(Stable) public EventarcTriggerDestinationGke.Builder service(String service)
Sets the value ofEventarcTriggerDestinationGke.getService()- Parameters:
service- Required. Name of the GKE service. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_trigger#service EventarcTrigger#service}- Returns:
this
-
path
@Stability(Stable) public EventarcTriggerDestinationGke.Builder path(String path)
Sets the value ofEventarcTriggerDestinationGke.getPath()- Parameters:
path- Optional. The relative path on the GKE service the events should be sent to. The value must conform to the definition of a URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_trigger#path EventarcTrigger#path}- Returns:
this
-
build
@Stability(Stable) public EventarcTriggerDestinationGke build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EventarcTriggerDestinationGke>- Returns:
- a new instance of
EventarcTriggerDestinationGke - Throws:
NullPointerException- if any required attribute was not provided
-
-