Class TunnelOption
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TunnelOption.Builder,TunnelOption>
The VPN tunnel options.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic TunnelOption.Builderbuilder()final StringThe action to take after a DPD timeout occurs.final IntegerThe number of seconds after which a DPD timeout occurs.final BooleanStatus of tunnel endpoint lifecycle control feature.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final booleanFor responses, this returns true if the service returned a value for the IkeVersions property.final booleanFor responses, this returns true if the service returned a value for the Phase1DHGroupNumbers property.final booleanFor responses, this returns true if the service returned a value for the Phase1EncryptionAlgorithms property.final booleanFor responses, this returns true if the service returned a value for the Phase1IntegrityAlgorithms property.final booleanFor responses, this returns true if the service returned a value for the Phase2DHGroupNumbers property.final booleanFor responses, this returns true if the service returned a value for the Phase2EncryptionAlgorithms property.final booleanFor responses, this returns true if the service returned a value for the Phase2IntegrityAlgorithms property.final List<IKEVersionsListValue> The IKE versions that are permitted for the VPN tunnel.final VpnTunnelLogOptionsOptions for logging VPN tunnel activity.final StringThe external IP address of the VPN tunnel.The permitted Diffie-Hellman group numbers for the VPN tunnel for phase 1 IKE negotiations.The permitted encryption algorithms for the VPN tunnel for phase 1 IKE negotiations.The permitted integrity algorithms for the VPN tunnel for phase 1 IKE negotiations.final IntegerThe lifetime for phase 1 of the IKE negotiation, in seconds.The permitted Diffie-Hellman group numbers for the VPN tunnel for phase 2 IKE negotiations.The permitted encryption algorithms for the VPN tunnel for phase 2 IKE negotiations.The permitted integrity algorithms for the VPN tunnel for phase 2 IKE negotiations.final IntegerThe lifetime for phase 2 of the IKE negotiation, in seconds.final StringThe pre-shared key (PSK) to establish initial authentication between the virtual private gateway and the customer gateway.final IntegerThe percentage of the rekey window determined byRekeyMarginTimeSecondsduring which the rekey time is randomly selected.final IntegerThe 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.final IntegerThe number of packets in an IKE replay window.static Class<? extends TunnelOption.Builder> final StringThe action to take when the establishing the VPN tunnels for a VPN connection.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final StringThe range of inside IPv4 addresses for the tunnel.final StringThe range of inside IPv6 addresses for the tunnel.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
outsideIpAddress
The external IP address of the VPN tunnel.
- Returns:
- The external IP address of the VPN tunnel.
-
tunnelInsideCidr
The range of inside IPv4 addresses for the tunnel.
- Returns:
- The range of inside IPv4 addresses for the tunnel.
-
tunnelInsideIpv6Cidr
The range of inside IPv6 addresses for the tunnel.
- Returns:
- The range of inside IPv6 addresses for the tunnel.
-
phase1LifetimeSeconds
The lifetime for phase 1 of the IKE negotiation, in seconds.
- Returns:
- The lifetime for phase 1 of the IKE negotiation, in seconds.
-
phase2LifetimeSeconds
The lifetime for phase 2 of the IKE negotiation, in seconds.
- Returns:
- The lifetime for phase 2 of the IKE negotiation, in seconds.
-
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:
- 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.
-
rekeyFuzzPercentage
The percentage of the rekey window determined by
RekeyMarginTimeSecondsduring which the rekey time is randomly selected.- Returns:
- The percentage of the rekey window determined by
RekeyMarginTimeSecondsduring which the rekey time is randomly selected.
-
replayWindowSize
The number of packets in an IKE replay window.
- Returns:
- The number of packets in an IKE replay window.
-
dpdTimeoutSeconds
The number of seconds after which a DPD timeout occurs.
- Returns:
- The number of seconds after which a DPD timeout occurs.
-
dpdTimeoutAction
The action to take after a DPD timeout occurs.
- Returns:
- The action to take after a DPD timeout occurs.
-
hasPhase1EncryptionAlgorithms
public final boolean hasPhase1EncryptionAlgorithms()For responses, this returns true if the service returned a value for the Phase1EncryptionAlgorithms property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
phase1EncryptionAlgorithms
The permitted encryption algorithms for the VPN tunnel for phase 1 IKE negotiations.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasPhase1EncryptionAlgorithms()method.- Returns:
- The permitted encryption algorithms for the VPN tunnel for phase 1 IKE negotiations.
-
hasPhase2EncryptionAlgorithms
public final boolean hasPhase2EncryptionAlgorithms()For responses, this returns true if the service returned a value for the Phase2EncryptionAlgorithms property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
phase2EncryptionAlgorithms
The permitted encryption algorithms for the VPN tunnel for phase 2 IKE negotiations.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasPhase2EncryptionAlgorithms()method.- Returns:
- The permitted encryption algorithms for the VPN tunnel for phase 2 IKE negotiations.
-
hasPhase1IntegrityAlgorithms
public final boolean hasPhase1IntegrityAlgorithms()For responses, this returns true if the service returned a value for the Phase1IntegrityAlgorithms property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
phase1IntegrityAlgorithms
The permitted integrity algorithms for the VPN tunnel for phase 1 IKE negotiations.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasPhase1IntegrityAlgorithms()method.- Returns:
- The permitted integrity algorithms for the VPN tunnel for phase 1 IKE negotiations.
-
hasPhase2IntegrityAlgorithms
public final boolean hasPhase2IntegrityAlgorithms()For responses, this returns true if the service returned a value for the Phase2IntegrityAlgorithms property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
phase2IntegrityAlgorithms
The permitted integrity algorithms for the VPN tunnel for phase 2 IKE negotiations.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasPhase2IntegrityAlgorithms()method.- Returns:
- The permitted integrity algorithms for the VPN tunnel for phase 2 IKE negotiations.
-
hasPhase1DHGroupNumbers
public final boolean hasPhase1DHGroupNumbers()For responses, this returns true if the service returned a value for the Phase1DHGroupNumbers property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
phase1DHGroupNumbers
The permitted Diffie-Hellman group numbers for the VPN tunnel for phase 1 IKE negotiations.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasPhase1DHGroupNumbers()method.- Returns:
- The permitted Diffie-Hellman group numbers for the VPN tunnel for phase 1 IKE negotiations.
-
hasPhase2DHGroupNumbers
public final boolean hasPhase2DHGroupNumbers()For responses, this returns true if the service returned a value for the Phase2DHGroupNumbers property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
phase2DHGroupNumbers
The permitted Diffie-Hellman group numbers for the VPN tunnel for phase 2 IKE negotiations.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasPhase2DHGroupNumbers()method.- Returns:
- The permitted Diffie-Hellman group numbers for the VPN tunnel for phase 2 IKE negotiations.
-
hasIkeVersions
public final boolean hasIkeVersions()For responses, this returns true if the service returned a value for the IkeVersions property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
ikeVersions
The IKE versions that are permitted for the VPN tunnel.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasIkeVersions()method.- Returns:
- The IKE versions that are permitted for the VPN tunnel.
-
startupAction
The action to take when the establishing the VPN tunnels for a VPN connection.
- Returns:
- The action to take when the establishing the VPN tunnels for a VPN connection.
-
logOptions
Options for logging VPN tunnel activity.
- Returns:
- Options for logging VPN tunnel activity.
-
enableTunnelLifecycleControl
Status of tunnel endpoint lifecycle control feature.
- Returns:
- Status of tunnel endpoint lifecycle control feature.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<TunnelOption.Builder,TunnelOption> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-