Class LocalGatewayVirtualInterface
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.LocalGatewayVirtualInterface
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<LocalGatewayVirtualInterface.Builder,LocalGatewayVirtualInterface>
@Generated("software.amazon.awssdk:codegen") public final class LocalGatewayVirtualInterface extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LocalGatewayVirtualInterface.Builder,LocalGatewayVirtualInterface>
Describes a local gateway virtual interface.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLocalGatewayVirtualInterface.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LocalGatewayVirtualInterface.Builderbuilder()LocalGatewayVirtualInterfaceConfigurationStateconfigurationState()The current state of the local gateway virtual interface.StringconfigurationStateAsString()The current state of the local gateway virtual interface.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.StringlocalAddress()The local address.IntegerlocalBgpAsn()The Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the local gateway.StringlocalGatewayId()The ID of the local gateway.StringlocalGatewayVirtualInterfaceArn()The Amazon Resource Number (ARN) of the local gateway virtual interface.StringlocalGatewayVirtualInterfaceGroupId()The ID of the local gateway virtual interface group.StringlocalGatewayVirtualInterfaceId()The ID of the virtual interface.StringoutpostLagId()The Outpost LAG ID.StringownerId()The ID of the Amazon Web Services account that owns the local gateway virtual interface.StringpeerAddress()The peer address.IntegerpeerBgpAsn()The peer BGP ASN.LongpeerBgpAsnExtended()The extended 32-bit ASN of the BGP peer for use with larger ASN values.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends LocalGatewayVirtualInterface.Builder>serializableBuilderClass()List<Tag>tags()The tags assigned to the virtual interface.LocalGatewayVirtualInterface.BuildertoBuilder()StringtoString()Returns a string representation of this object.Integervlan()The ID of the VLAN.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
localGatewayVirtualInterfaceId
public final String localGatewayVirtualInterfaceId()
The ID of the virtual interface.
- Returns:
- The ID of the virtual interface.
-
localGatewayId
public final String localGatewayId()
The ID of the local gateway.
- Returns:
- The ID of the local gateway.
-
localGatewayVirtualInterfaceGroupId
public final String localGatewayVirtualInterfaceGroupId()
The ID of the local gateway virtual interface group.
- Returns:
- The ID of the local gateway virtual interface group.
-
localGatewayVirtualInterfaceArn
public final String localGatewayVirtualInterfaceArn()
The Amazon Resource Number (ARN) of the local gateway virtual interface.
- Returns:
- The Amazon Resource Number (ARN) of the local gateway virtual interface.
-
outpostLagId
public final String outpostLagId()
The Outpost LAG ID.
- Returns:
- The Outpost LAG ID.
-
vlan
public final Integer vlan()
The ID of the VLAN.
- Returns:
- The ID of the VLAN.
-
localAddress
public final String localAddress()
The local address.
- Returns:
- The local address.
-
peerAddress
public final String peerAddress()
The peer address.
- Returns:
- The peer address.
-
localBgpAsn
public final Integer localBgpAsn()
The Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the local gateway.
- Returns:
- The Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the local gateway.
-
peerBgpAsn
public final Integer peerBgpAsn()
The peer BGP ASN.
- Returns:
- The peer BGP ASN.
-
peerBgpAsnExtended
public final Long peerBgpAsnExtended()
The extended 32-bit ASN of the BGP peer for use with larger ASN values.
- Returns:
- The extended 32-bit ASN of the BGP peer for use with larger ASN values.
-
ownerId
public final String ownerId()
The ID of the Amazon Web Services account that owns the local gateway virtual interface.
- Returns:
- The ID of the Amazon Web Services account that owns the local gateway virtual interface.
-
hasTags
public final boolean hasTags()
For responses, this returns true if the service returned a value for the Tags 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.
-
tags
public final List<Tag> tags()
The tags assigned to the virtual interface.
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
hasTags()method.- Returns:
- The tags assigned to the virtual interface.
-
configurationState
public final LocalGatewayVirtualInterfaceConfigurationState configurationState()
The current state of the local gateway virtual interface.
If the service returns an enum value that is not available in the current SDK version,
configurationStatewill returnLocalGatewayVirtualInterfaceConfigurationState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromconfigurationStateAsString().- Returns:
- The current state of the local gateway virtual interface.
- See Also:
LocalGatewayVirtualInterfaceConfigurationState
-
configurationStateAsString
public final String configurationStateAsString()
The current state of the local gateway virtual interface.
If the service returns an enum value that is not available in the current SDK version,
configurationStatewill returnLocalGatewayVirtualInterfaceConfigurationState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromconfigurationStateAsString().- Returns:
- The current state of the local gateway virtual interface.
- See Also:
LocalGatewayVirtualInterfaceConfigurationState
-
toBuilder
public LocalGatewayVirtualInterface.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<LocalGatewayVirtualInterface.Builder,LocalGatewayVirtualInterface>
-
builder
public static LocalGatewayVirtualInterface.Builder builder()
-
serializableBuilderClass
public static Class<? extends LocalGatewayVirtualInterface.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-