Class ComputeRouterBgp.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • asn

        @Stability(Stable)
        public ComputeRouterBgp.Builder asn​(Number asn)
        Sets the value of ComputeRouterBgp.getAsn()
        Parameters:
        asn - Local BGP Autonomous System Number (ASN). This parameter is required. Must be an RFC6996 private ASN, either 16-bit or 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this router will have the same local ASN. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_router#asn ComputeRouter#asn}
        Returns:
        this
      • advertisedGroups

        @Stability(Stable)
        public ComputeRouterBgp.Builder advertisedGroups​(List<String> advertisedGroups)
        Parameters:
        advertisedGroups - User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertiseMode is CUSTOM and is advertised to all peers of the router. These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. This enum field has the one valid value: ALL_SUBNETS Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_router#advertised_groups ComputeRouter#advertised_groups}
        Returns:
        this
      • advertisedIpRanges

        @Stability(Stable)
        public ComputeRouterBgp.Builder advertisedIpRanges​(com.hashicorp.cdktf.IResolvable advertisedIpRanges)
        Parameters:
        advertisedIpRanges - advertised_ip_ranges block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_router#advertised_ip_ranges ComputeRouter#advertised_ip_ranges}
        Returns:
        this
      • advertiseMode

        @Stability(Stable)
        public ComputeRouterBgp.Builder advertiseMode​(String advertiseMode)
        Parameters:
        advertiseMode - User-specified flag to indicate which mode to use for advertisement. Default value: "DEFAULT" Possible values: ["DEFAULT", "CUSTOM"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_router#advertise_mode ComputeRouter#advertise_mode}
        Returns:
        this
      • identifierRange

        @Stability(Stable)
        public ComputeRouterBgp.Builder identifierRange​(String identifierRange)
        Parameters:
        identifierRange - Explicitly specifies a range of valid BGP Identifiers for this Router. It is provided as a link-local IPv4 range (from 169.254.0.0/16), of size at least /30, even if the BGP sessions are over IPv6. It must not overlap with any IPv4 BGP session ranges. Other vendors commonly call this router ID. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_router#identifier_range ComputeRouter#identifier_range}
        Returns:
        this
      • keepaliveInterval

        @Stability(Stable)
        public ComputeRouterBgp.Builder keepaliveInterval​(Number keepaliveInterval)
        Parameters:
        keepaliveInterval - The interval in seconds between BGP keepalive messages that are sent to the peer. Hold time is three times the interval at which keepalive messages are sent, and the hold time is the maximum number of seconds allowed to elapse between successive keepalive messages that BGP receives from a peer. BGP will use the smaller of either the local hold time value or the peer's hold time value as the hold time for the BGP connection between the two peers. If set, this value must be between 20 and 60. The default is 20. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_router#keepalive_interval ComputeRouter#keepalive_interval}
        Returns:
        this