Interface TunnelOption.Builder

    • Method Detail

      • outsideIpAddress

        TunnelOption.Builder outsideIpAddress​(String outsideIpAddress)

        The external IP address of the VPN tunnel.

        Parameters:
        outsideIpAddress - The external IP address of the VPN tunnel.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tunnelInsideCidr

        TunnelOption.Builder tunnelInsideCidr​(String tunnelInsideCidr)

        The range of inside IPv4 addresses for the tunnel.

        Parameters:
        tunnelInsideCidr - The range of inside IPv4 addresses for the tunnel.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tunnelInsideIpv6Cidr

        TunnelOption.Builder tunnelInsideIpv6Cidr​(String tunnelInsideIpv6Cidr)

        The range of inside IPv6 addresses for the tunnel.

        Parameters:
        tunnelInsideIpv6Cidr - The range of inside IPv6 addresses for the tunnel.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • preSharedKey

        TunnelOption.Builder preSharedKey​(String preSharedKey)

        The pre-shared key (PSK) to establish initial authentication between the virtual private gateway and the customer gateway.

        Parameters:
        preSharedKey - The pre-shared key (PSK) to establish initial authentication between the virtual private gateway and the customer gateway.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • phase1LifetimeSeconds

        TunnelOption.Builder phase1LifetimeSeconds​(Integer phase1LifetimeSeconds)

        The lifetime for phase 1 of the IKE negotiation, in seconds.

        Parameters:
        phase1LifetimeSeconds - The lifetime for phase 1 of the IKE negotiation, in seconds.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • phase2LifetimeSeconds

        TunnelOption.Builder phase2LifetimeSeconds​(Integer phase2LifetimeSeconds)

        The lifetime for phase 2 of the IKE negotiation, in seconds.

        Parameters:
        phase2LifetimeSeconds - The lifetime for phase 2 of the IKE negotiation, in seconds.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • rekeyMarginTimeSeconds

        TunnelOption.Builder rekeyMarginTimeSeconds​(Integer rekeyMarginTimeSeconds)

        The margin time, in seconds, before the phase 2 lifetime expires, during which the Amazon Web Services side of the VPN connection performs an IKE rekey.

        Parameters:
        rekeyMarginTimeSeconds - The margin time, in seconds, before the phase 2 lifetime expires, during which the Amazon Web Services side of the VPN connection performs an IKE rekey.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • rekeyFuzzPercentage

        TunnelOption.Builder rekeyFuzzPercentage​(Integer rekeyFuzzPercentage)

        The percentage of the rekey window determined by RekeyMarginTimeSeconds during which the rekey time is randomly selected.

        Parameters:
        rekeyFuzzPercentage - The percentage of the rekey window determined by RekeyMarginTimeSeconds during which the rekey time is randomly selected.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • replayWindowSize

        TunnelOption.Builder replayWindowSize​(Integer replayWindowSize)

        The number of packets in an IKE replay window.

        Parameters:
        replayWindowSize - The number of packets in an IKE replay window.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dpdTimeoutSeconds

        TunnelOption.Builder dpdTimeoutSeconds​(Integer dpdTimeoutSeconds)

        The number of seconds after which a DPD timeout occurs.

        Parameters:
        dpdTimeoutSeconds - The number of seconds after which a DPD timeout occurs.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dpdTimeoutAction

        TunnelOption.Builder dpdTimeoutAction​(String dpdTimeoutAction)

        The action to take after a DPD timeout occurs.

        Parameters:
        dpdTimeoutAction - The action to take after a DPD timeout occurs.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • phase1EncryptionAlgorithms

        TunnelOption.Builder phase1EncryptionAlgorithms​(Collection<Phase1EncryptionAlgorithmsListValue> phase1EncryptionAlgorithms)

        The permitted encryption algorithms for the VPN tunnel for phase 1 IKE negotiations.

        Parameters:
        phase1EncryptionAlgorithms - The permitted encryption algorithms for the VPN tunnel for phase 1 IKE negotiations.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • phase1EncryptionAlgorithms

        TunnelOption.Builder phase1EncryptionAlgorithms​(Phase1EncryptionAlgorithmsListValue... phase1EncryptionAlgorithms)

        The permitted encryption algorithms for the VPN tunnel for phase 1 IKE negotiations.

        Parameters:
        phase1EncryptionAlgorithms - The permitted encryption algorithms for the VPN tunnel for phase 1 IKE negotiations.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • phase2EncryptionAlgorithms

        TunnelOption.Builder phase2EncryptionAlgorithms​(Collection<Phase2EncryptionAlgorithmsListValue> phase2EncryptionAlgorithms)

        The permitted encryption algorithms for the VPN tunnel for phase 2 IKE negotiations.

        Parameters:
        phase2EncryptionAlgorithms - The permitted encryption algorithms for the VPN tunnel for phase 2 IKE negotiations.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • phase2EncryptionAlgorithms

        TunnelOption.Builder phase2EncryptionAlgorithms​(Phase2EncryptionAlgorithmsListValue... phase2EncryptionAlgorithms)

        The permitted encryption algorithms for the VPN tunnel for phase 2 IKE negotiations.

        Parameters:
        phase2EncryptionAlgorithms - The permitted encryption algorithms for the VPN tunnel for phase 2 IKE negotiations.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • phase1IntegrityAlgorithms

        TunnelOption.Builder phase1IntegrityAlgorithms​(Collection<Phase1IntegrityAlgorithmsListValue> phase1IntegrityAlgorithms)

        The permitted integrity algorithms for the VPN tunnel for phase 1 IKE negotiations.

        Parameters:
        phase1IntegrityAlgorithms - The permitted integrity algorithms for the VPN tunnel for phase 1 IKE negotiations.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • phase1IntegrityAlgorithms

        TunnelOption.Builder phase1IntegrityAlgorithms​(Phase1IntegrityAlgorithmsListValue... phase1IntegrityAlgorithms)

        The permitted integrity algorithms for the VPN tunnel for phase 1 IKE negotiations.

        Parameters:
        phase1IntegrityAlgorithms - The permitted integrity algorithms for the VPN tunnel for phase 1 IKE negotiations.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • phase2IntegrityAlgorithms

        TunnelOption.Builder phase2IntegrityAlgorithms​(Collection<Phase2IntegrityAlgorithmsListValue> phase2IntegrityAlgorithms)

        The permitted integrity algorithms for the VPN tunnel for phase 2 IKE negotiations.

        Parameters:
        phase2IntegrityAlgorithms - The permitted integrity algorithms for the VPN tunnel for phase 2 IKE negotiations.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • phase2IntegrityAlgorithms

        TunnelOption.Builder phase2IntegrityAlgorithms​(Phase2IntegrityAlgorithmsListValue... phase2IntegrityAlgorithms)

        The permitted integrity algorithms for the VPN tunnel for phase 2 IKE negotiations.

        Parameters:
        phase2IntegrityAlgorithms - The permitted integrity algorithms for the VPN tunnel for phase 2 IKE negotiations.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • phase1DHGroupNumbers

        TunnelOption.Builder phase1DHGroupNumbers​(Collection<Phase1DHGroupNumbersListValue> phase1DHGroupNumbers)

        The permitted Diffie-Hellman group numbers for the VPN tunnel for phase 1 IKE negotiations.

        Parameters:
        phase1DHGroupNumbers - The permitted Diffie-Hellman group numbers for the VPN tunnel for phase 1 IKE negotiations.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • phase1DHGroupNumbers

        TunnelOption.Builder phase1DHGroupNumbers​(Phase1DHGroupNumbersListValue... phase1DHGroupNumbers)

        The permitted Diffie-Hellman group numbers for the VPN tunnel for phase 1 IKE negotiations.

        Parameters:
        phase1DHGroupNumbers - The permitted Diffie-Hellman group numbers for the VPN tunnel for phase 1 IKE negotiations.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • phase2DHGroupNumbers

        TunnelOption.Builder phase2DHGroupNumbers​(Collection<Phase2DHGroupNumbersListValue> phase2DHGroupNumbers)

        The permitted Diffie-Hellman group numbers for the VPN tunnel for phase 2 IKE negotiations.

        Parameters:
        phase2DHGroupNumbers - The permitted Diffie-Hellman group numbers for the VPN tunnel for phase 2 IKE negotiations.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • phase2DHGroupNumbers

        TunnelOption.Builder phase2DHGroupNumbers​(Phase2DHGroupNumbersListValue... phase2DHGroupNumbers)

        The permitted Diffie-Hellman group numbers for the VPN tunnel for phase 2 IKE negotiations.

        Parameters:
        phase2DHGroupNumbers - The permitted Diffie-Hellman group numbers for the VPN tunnel for phase 2 IKE negotiations.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ikeVersions

        TunnelOption.Builder ikeVersions​(Collection<IKEVersionsListValue> ikeVersions)

        The IKE versions that are permitted for the VPN tunnel.

        Parameters:
        ikeVersions - The IKE versions that are permitted for the VPN tunnel.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ikeVersions

        TunnelOption.Builder ikeVersions​(IKEVersionsListValue... ikeVersions)

        The IKE versions that are permitted for the VPN tunnel.

        Parameters:
        ikeVersions - The IKE versions that are permitted for the VPN tunnel.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • startupAction

        TunnelOption.Builder startupAction​(String startupAction)

        The action to take when the establishing the VPN tunnels for a VPN connection.

        Parameters:
        startupAction - The action to take when the establishing the VPN tunnels for a VPN connection.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • logOptions

        TunnelOption.Builder logOptions​(VpnTunnelLogOptions logOptions)

        Options for logging VPN tunnel activity.

        Parameters:
        logOptions - Options for logging VPN tunnel activity.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • enableTunnelLifecycleControl

        TunnelOption.Builder enableTunnelLifecycleControl​(Boolean enableTunnelLifecycleControl)

        Status of tunnel endpoint lifecycle control feature.

        Parameters:
        enableTunnelLifecycleControl - Status of tunnel endpoint lifecycle control feature.
        Returns:
        Returns a reference to this object so that method calls can be chained together.