Class ComputeInterconnectMacsecPreSharedKeys.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_interconnect.ComputeInterconnectMacsecPreSharedKeys.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeInterconnectMacsecPreSharedKeys>
- Enclosing interface:
- ComputeInterconnectMacsecPreSharedKeys
@Stability(Stable) public static final class ComputeInterconnectMacsecPreSharedKeys.Builder extends Object implements software.amazon.jsii.Builder<ComputeInterconnectMacsecPreSharedKeys>
A builder forComputeInterconnectMacsecPreSharedKeys
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeInterconnectMacsecPreSharedKeysbuild()Builds the configured instance.ComputeInterconnectMacsecPreSharedKeys.BuilderfailOpen(com.hashicorp.cdktf.IResolvable failOpen)Sets the value ofComputeInterconnectMacsecPreSharedKeys.getFailOpen()ComputeInterconnectMacsecPreSharedKeys.BuilderfailOpen(Boolean failOpen)Sets the value ofComputeInterconnectMacsecPreSharedKeys.getFailOpen()ComputeInterconnectMacsecPreSharedKeys.Buildername(String name)Sets the value ofComputeInterconnectMacsecPreSharedKeys.getName()ComputeInterconnectMacsecPreSharedKeys.BuilderstartTime(String startTime)Sets the value ofComputeInterconnectMacsecPreSharedKeys.getStartTime()
-
-
-
Method Detail
-
name
@Stability(Stable) public ComputeInterconnectMacsecPreSharedKeys.Builder name(String name)
Sets the value ofComputeInterconnectMacsecPreSharedKeys.getName()- Parameters:
name- A name for this pre-shared key. This parameter is required. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression '[a-z](%5B-a-z0-9%5D*%5Ba-z0-9%5D)?' which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect#name ComputeInterconnect#name}- Returns:
this
-
failOpen
@Stability(Stable) public ComputeInterconnectMacsecPreSharedKeys.Builder failOpen(Boolean failOpen)
Sets the value ofComputeInterconnectMacsecPreSharedKeys.getFailOpen()- Parameters:
failOpen- If set to true, the Interconnect connection is configured with a should-secure MACsec security policy, that allows the Google router to fallback to cleartext traffic if the MKA session cannot be established. By default, the Interconnect connection is configured with a must-secure security policy that drops all traffic if the MKA session cannot be established with your router. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect#fail_open ComputeInterconnect#fail_open}- Returns:
this
-
failOpen
@Stability(Stable) public ComputeInterconnectMacsecPreSharedKeys.Builder failOpen(com.hashicorp.cdktf.IResolvable failOpen)
Sets the value ofComputeInterconnectMacsecPreSharedKeys.getFailOpen()- Parameters:
failOpen- If set to true, the Interconnect connection is configured with a should-secure MACsec security policy, that allows the Google router to fallback to cleartext traffic if the MKA session cannot be established. By default, the Interconnect connection is configured with a must-secure security policy that drops all traffic if the MKA session cannot be established with your router. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect#fail_open ComputeInterconnect#fail_open}- Returns:
this
-
startTime
@Stability(Stable) public ComputeInterconnectMacsecPreSharedKeys.Builder startTime(String startTime)
Sets the value ofComputeInterconnectMacsecPreSharedKeys.getStartTime()- Parameters:
startTime- A RFC3339 timestamp on or after which the key is valid. startTime can be in the future. If the keychain has a single key, startTime can be omitted. If the keychain has multiple keys, startTime is mandatory for each key. The start times of keys must be in increasing order. The start times of two consecutive keys must be at least 6 hours apart. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect#start_time ComputeInterconnect#start_time}- Returns:
this
-
build
@Stability(Stable) public ComputeInterconnectMacsecPreSharedKeys build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeInterconnectMacsecPreSharedKeys>- Returns:
- a new instance of
ComputeInterconnectMacsecPreSharedKeys - Throws:
NullPointerException- if any required attribute was not provided
-
-