Class ComputeServiceAttachmentConsumerAcceptLists.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_service_attachment.ComputeServiceAttachmentConsumerAcceptLists.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeServiceAttachmentConsumerAcceptLists>
- Enclosing interface:
- ComputeServiceAttachmentConsumerAcceptLists
@Stability(Stable) public static final class ComputeServiceAttachmentConsumerAcceptLists.Builder extends Object implements software.amazon.jsii.Builder<ComputeServiceAttachmentConsumerAcceptLists>
A builder forComputeServiceAttachmentConsumerAcceptLists
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeServiceAttachmentConsumerAcceptListsbuild()Builds the configured instance.ComputeServiceAttachmentConsumerAcceptLists.BuilderconnectionLimit(Number connectionLimit)Sets the value ofComputeServiceAttachmentConsumerAcceptLists.getConnectionLimit()ComputeServiceAttachmentConsumerAcceptLists.BuildernetworkUrl(String networkUrl)Sets the value ofComputeServiceAttachmentConsumerAcceptLists.getNetworkUrl()ComputeServiceAttachmentConsumerAcceptLists.BuilderprojectIdOrNum(String projectIdOrNum)Sets the value ofComputeServiceAttachmentConsumerAcceptLists.getProjectIdOrNum()
-
-
-
Method Detail
-
connectionLimit
@Stability(Stable) public ComputeServiceAttachmentConsumerAcceptLists.Builder connectionLimit(Number connectionLimit)
Sets the value ofComputeServiceAttachmentConsumerAcceptLists.getConnectionLimit()- Parameters:
connectionLimit- The number of consumer forwarding rules the consumer project can create. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_service_attachment#connection_limit ComputeServiceAttachment#connection_limit}- Returns:
this
-
networkUrl
@Stability(Stable) public ComputeServiceAttachmentConsumerAcceptLists.Builder networkUrl(String networkUrl)
Sets the value ofComputeServiceAttachmentConsumerAcceptLists.getNetworkUrl()- Parameters:
networkUrl- The network that is allowed to connect to this service attachment. Only one of project_id_or_num and network_url may be set. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_service_attachment#network_url ComputeServiceAttachment#network_url}- Returns:
this
-
projectIdOrNum
@Stability(Stable) public ComputeServiceAttachmentConsumerAcceptLists.Builder projectIdOrNum(String projectIdOrNum)
Sets the value ofComputeServiceAttachmentConsumerAcceptLists.getProjectIdOrNum()- Parameters:
projectIdOrNum- A project that is allowed to connect to this service attachment. Only one of project_id_or_num and network_url may be set. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_service_attachment#project_id_or_num ComputeServiceAttachment#project_id_or_num}- Returns:
this
-
build
@Stability(Stable) public ComputeServiceAttachmentConsumerAcceptLists build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeServiceAttachmentConsumerAcceptLists>- Returns:
- a new instance of
ComputeServiceAttachmentConsumerAcceptLists - Throws:
NullPointerException- if any required attribute was not provided
-
-