Class ContainerClusterNotificationConfigPubsub.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.container_cluster.ContainerClusterNotificationConfigPubsub.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ContainerClusterNotificationConfigPubsub>
- Enclosing interface:
- ContainerClusterNotificationConfigPubsub
@Stability(Stable) public static final class ContainerClusterNotificationConfigPubsub.Builder extends Object implements software.amazon.jsii.Builder<ContainerClusterNotificationConfigPubsub>
A builder forContainerClusterNotificationConfigPubsub
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContainerClusterNotificationConfigPubsubbuild()Builds the configured instance.ContainerClusterNotificationConfigPubsub.Builderenabled(com.hashicorp.cdktf.IResolvable enabled)Sets the value ofContainerClusterNotificationConfigPubsub.getEnabled()ContainerClusterNotificationConfigPubsub.Builderenabled(Boolean enabled)Sets the value ofContainerClusterNotificationConfigPubsub.getEnabled()ContainerClusterNotificationConfigPubsub.Builderfilter(ContainerClusterNotificationConfigPubsubFilter filter)Sets the value ofContainerClusterNotificationConfigPubsub.getFilter()ContainerClusterNotificationConfigPubsub.Buildertopic(String topic)Sets the value ofContainerClusterNotificationConfigPubsub.getTopic()
-
-
-
Method Detail
-
enabled
@Stability(Stable) public ContainerClusterNotificationConfigPubsub.Builder enabled(Boolean enabled)
Sets the value ofContainerClusterNotificationConfigPubsub.getEnabled()- Parameters:
enabled- Whether or not the notification config is enabled. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#enabled ContainerCluster#enabled}- Returns:
this
-
enabled
@Stability(Stable) public ContainerClusterNotificationConfigPubsub.Builder enabled(com.hashicorp.cdktf.IResolvable enabled)
Sets the value ofContainerClusterNotificationConfigPubsub.getEnabled()- Parameters:
enabled- Whether or not the notification config is enabled. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#enabled ContainerCluster#enabled}- Returns:
this
-
filter
@Stability(Stable) public ContainerClusterNotificationConfigPubsub.Builder filter(ContainerClusterNotificationConfigPubsubFilter filter)
Sets the value ofContainerClusterNotificationConfigPubsub.getFilter()- Parameters:
filter- filter block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#filter ContainerCluster#filter}- Returns:
this
-
topic
@Stability(Stable) public ContainerClusterNotificationConfigPubsub.Builder topic(String topic)
Sets the value ofContainerClusterNotificationConfigPubsub.getTopic()- Parameters:
topic- The pubsub topic to push upgrade notifications to. Must be in the same project as the cluster. Must be in the format: projects/{project}/topics/{topic}. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#topic ContainerCluster#topic}- Returns:
this
-
build
@Stability(Stable) public ContainerClusterNotificationConfigPubsub build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ContainerClusterNotificationConfigPubsub>- Returns:
- a new instance of
ContainerClusterNotificationConfigPubsub - Throws:
NullPointerException- if any required attribute was not provided
-
-