@Generated(value="software.amazon.awssdk:codegen") public final class VpnTunnelOptionsSpecification extends Object implements SdkPojo, Serializable, ToCopyableBuilder<VpnTunnelOptionsSpecification.Builder,VpnTunnelOptionsSpecification>
The tunnel options for a VPN connection.
Modifier and Type | Class and Description |
---|---|
static interface |
VpnTunnelOptionsSpecification.Builder |
Modifier and Type | Method and Description |
---|---|
static VpnTunnelOptionsSpecification.Builder |
builder() |
Integer |
dpdTimeoutSeconds()
The number of seconds after which a DPD timeout occurs.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasIkeVersions()
Returns true if the IKEVersions property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasPhase1DHGroupNumbers()
Returns true if the Phase1DHGroupNumbers property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasPhase1EncryptionAlgorithms()
Returns true if the Phase1EncryptionAlgorithms property was specified by the sender (it may be empty), or false
if the sender did not specify the value (it will be empty).
|
boolean |
hasPhase1IntegrityAlgorithms()
Returns true if the Phase1IntegrityAlgorithms property was specified by the sender (it may be empty), or false if
the sender did not specify the value (it will be empty).
|
boolean |
hasPhase2DHGroupNumbers()
Returns true if the Phase2DHGroupNumbers property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasPhase2EncryptionAlgorithms()
Returns true if the Phase2EncryptionAlgorithms property was specified by the sender (it may be empty), or false
if the sender did not specify the value (it will be empty).
|
boolean |
hasPhase2IntegrityAlgorithms()
Returns true if the Phase2IntegrityAlgorithms property was specified by the sender (it may be empty), or false if
the sender did not specify the value (it will be empty).
|
List<IKEVersionsRequestListValue> |
ikeVersions()
The IKE versions that are permitted for the VPN tunnel.
|
List<Phase1DHGroupNumbersRequestListValue> |
phase1DHGroupNumbers()
One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel for phase 1 IKE negotiations.
|
List<Phase1EncryptionAlgorithmsRequestListValue> |
phase1EncryptionAlgorithms()
One or more encryption algorithms that are permitted for the VPN tunnel for phase 1 IKE negotiations.
|
List<Phase1IntegrityAlgorithmsRequestListValue> |
phase1IntegrityAlgorithms()
One or more integrity algorithms that are permitted for the VPN tunnel for phase 1 IKE negotiations.
|
Integer |
phase1LifetimeSeconds()
The lifetime for phase 1 of the IKE negotiation, in seconds.
|
List<Phase2DHGroupNumbersRequestListValue> |
phase2DHGroupNumbers()
One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel for phase 2 IKE negotiations.
|
List<Phase2EncryptionAlgorithmsRequestListValue> |
phase2EncryptionAlgorithms()
One or more encryption algorithms that are permitted for the VPN tunnel for phase 2 IKE negotiations.
|
List<Phase2IntegrityAlgorithmsRequestListValue> |
phase2IntegrityAlgorithms()
One or more integrity algorithms that are permitted for the VPN tunnel for phase 2 IKE negotiations.
|
Integer |
phase2LifetimeSeconds()
The lifetime for phase 2 of the IKE negotiation, in seconds.
|
String |
preSharedKey()
The pre-shared key (PSK) to establish initial authentication between the virtual private gateway and customer
gateway.
|
Integer |
rekeyFuzzPercentage()
The percentage of the rekey window (determined by
RekeyMarginTimeSeconds ) during which the rekey
time is randomly selected. |
Integer |
rekeyMarginTimeSeconds()
The margin time, in seconds, before the phase 2 lifetime expires, during which the AWS side of the VPN connection
performs an IKE rekey.
|
Integer |
replayWindowSize()
The number of packets in an IKE replay window.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends VpnTunnelOptionsSpecification.Builder> |
serializableBuilderClass() |
VpnTunnelOptionsSpecification.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
tunnelInsideCidr()
The range of inside IP addresses for the tunnel.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public String tunnelInsideCidr()
The range of inside IP addresses for the tunnel. Any specified CIDR blocks must be unique across all VPN connections that use the same virtual private gateway.
Constraints: A size /30 CIDR block from the 169.254.0.0/16
range. The following CIDR blocks are
reserved and cannot be used:
169.254.0.0/30
169.254.1.0/30
169.254.2.0/30
169.254.3.0/30
169.254.4.0/30
169.254.5.0/30
169.254.169.252/30
Constraints: A size /30 CIDR block from the 169.254.0.0/16
range. The following CIDR blocks
are reserved and cannot be used:
169.254.0.0/30
169.254.1.0/30
169.254.2.0/30
169.254.3.0/30
169.254.4.0/30
169.254.5.0/30
169.254.169.252/30
public String preSharedKey()
The pre-shared key (PSK) to establish initial authentication between the virtual private gateway and customer gateway.
Constraints: Allowed characters are alphanumeric characters, periods (.), and underscores (_). Must be between 8 and 64 characters in length and cannot start with zero (0).
Constraints: Allowed characters are alphanumeric characters, periods (.), and underscores (_). Must be between 8 and 64 characters in length and cannot start with zero (0).
public Integer phase1LifetimeSeconds()
The lifetime for phase 1 of the IKE negotiation, in seconds.
Constraints: A value between 900 and 28,800.
Default: 28800
Constraints: A value between 900 and 28,800.
Default: 28800
public Integer phase2LifetimeSeconds()
The lifetime for phase 2 of the IKE negotiation, in seconds.
Constraints: A value between 900 and 3,600. The value must be less than the value for
Phase1LifetimeSeconds
.
Default: 3600
Constraints: A value between 900 and 3,600. The value must be less than the value for
Phase1LifetimeSeconds
.
Default: 3600
public Integer rekeyMarginTimeSeconds()
The margin time, in seconds, before the phase 2 lifetime expires, during which the AWS side of the VPN connection
performs an IKE rekey. The exact time of the rekey is randomly selected based on the value for
RekeyFuzzPercentage
.
Constraints: A value between 60 and half of Phase2LifetimeSeconds
.
Default: 540
RekeyFuzzPercentage
.
Constraints: A value between 60 and half of Phase2LifetimeSeconds
.
Default: 540
public Integer rekeyFuzzPercentage()
The percentage of the rekey window (determined by RekeyMarginTimeSeconds
) during which the rekey
time is randomly selected.
Constraints: A value between 0 and 100.
Default: 100
RekeyMarginTimeSeconds
) during which the
rekey time is randomly selected.
Constraints: A value between 0 and 100.
Default: 100
public Integer replayWindowSize()
The number of packets in an IKE replay window.
Constraints: A value between 64 and 2048.
Default: 1024
Constraints: A value between 64 and 2048.
Default: 1024
public Integer dpdTimeoutSeconds()
The number of seconds after which a DPD timeout occurs.
Constraints: A value between 0 and 30.
Default: 30
Constraints: A value between 0 and 30.
Default: 30
public boolean hasPhase1EncryptionAlgorithms()
public List<Phase1EncryptionAlgorithmsRequestListValue> phase1EncryptionAlgorithms()
One or more encryption algorithms that are permitted for the VPN tunnel for phase 1 IKE negotiations.
Valid values: AES128
| AES256
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasPhase1EncryptionAlgorithms()
to see if a value was sent in this field.
Valid values: AES128
| AES256
public boolean hasPhase2EncryptionAlgorithms()
public List<Phase2EncryptionAlgorithmsRequestListValue> phase2EncryptionAlgorithms()
One or more encryption algorithms that are permitted for the VPN tunnel for phase 2 IKE negotiations.
Valid values: AES128
| AES256
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasPhase2EncryptionAlgorithms()
to see if a value was sent in this field.
Valid values: AES128
| AES256
public boolean hasPhase1IntegrityAlgorithms()
public List<Phase1IntegrityAlgorithmsRequestListValue> phase1IntegrityAlgorithms()
One or more integrity algorithms that are permitted for the VPN tunnel for phase 1 IKE negotiations.
Valid values: SHA1
| SHA2-256
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasPhase1IntegrityAlgorithms()
to see if a value was sent in this field.
Valid values: SHA1
| SHA2-256
public boolean hasPhase2IntegrityAlgorithms()
public List<Phase2IntegrityAlgorithmsRequestListValue> phase2IntegrityAlgorithms()
One or more integrity algorithms that are permitted for the VPN tunnel for phase 2 IKE negotiations.
Valid values: SHA1
| SHA2-256
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasPhase2IntegrityAlgorithms()
to see if a value was sent in this field.
Valid values: SHA1
| SHA2-256
public boolean hasPhase1DHGroupNumbers()
public List<Phase1DHGroupNumbersRequestListValue> phase1DHGroupNumbers()
One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel for phase 1 IKE negotiations.
Valid values: 2
| 14
| 15
| 16
| 17
|
18
| 22
| 23
| 24
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasPhase1DHGroupNumbers()
to see if a value was sent in this field.
Valid values: 2
| 14
| 15
| 16
| 17
|
18
| 22
| 23
| 24
public boolean hasPhase2DHGroupNumbers()
public List<Phase2DHGroupNumbersRequestListValue> phase2DHGroupNumbers()
One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel for phase 2 IKE negotiations.
Valid values: 2
| 5
| 14
| 15
| 16
|
17
| 18
| 22
| 23
| 24
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasPhase2DHGroupNumbers()
to see if a value was sent in this field.
Valid values: 2
| 5
| 14
| 15
| 16
|
17
| 18
| 22
| 23
| 24
public boolean hasIkeVersions()
public List<IKEVersionsRequestListValue> ikeVersions()
The IKE versions that are permitted for the VPN tunnel.
Valid values: ikev1
| ikev2
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasIkeVersions()
to see if a value was sent in this field.
Valid values: ikev1
| ikev2
public VpnTunnelOptionsSpecification.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<VpnTunnelOptionsSpecification.Builder,VpnTunnelOptionsSpecification>
public static VpnTunnelOptionsSpecification.Builder builder()
public static Class<? extends VpnTunnelOptionsSpecification.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
Copyright © 2019. All rights reserved.