Class NewBGPPeer
- java.lang.Object
-
- software.amazon.awssdk.services.directconnect.model.NewBGPPeer
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<NewBGPPeer.Builder,NewBGPPeer>
@Generated("software.amazon.awssdk:codegen") public final class NewBGPPeer extends Object implements SdkPojo, Serializable, ToCopyableBuilder<NewBGPPeer.Builder,NewBGPPeer>
Information about a new BGP peer.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceNewBGPPeer.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AddressFamilyaddressFamily()The address family for the BGP peer.StringaddressFamilyAsString()The address family for the BGP peer.StringamazonAddress()The IP address assigned to the Amazon interface.Integerasn()The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.StringauthKey()The authentication key for BGP configuration.static NewBGPPeer.Builderbuilder()StringcustomerAddress()The IP address assigned to the customer interface.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends NewBGPPeer.Builder>serializableBuilderClass()NewBGPPeer.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
asn
public final Integer asn()
The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
- Returns:
- The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
-
authKey
public final String authKey()
The authentication key for BGP configuration. This string has a minimum length of 6 characters and and a maximun lenth of 80 characters.
- Returns:
- The authentication key for BGP configuration. This string has a minimum length of 6 characters and and a maximun lenth of 80 characters.
-
addressFamily
public final AddressFamily addressFamily()
The address family for the BGP peer.
If the service returns an enum value that is not available in the current SDK version,
addressFamilywill returnAddressFamily.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromaddressFamilyAsString().- Returns:
- The address family for the BGP peer.
- See Also:
AddressFamily
-
addressFamilyAsString
public final String addressFamilyAsString()
The address family for the BGP peer.
If the service returns an enum value that is not available in the current SDK version,
addressFamilywill returnAddressFamily.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromaddressFamilyAsString().- Returns:
- The address family for the BGP peer.
- See Also:
AddressFamily
-
amazonAddress
public final String amazonAddress()
The IP address assigned to the Amazon interface.
- Returns:
- The IP address assigned to the Amazon interface.
-
customerAddress
public final String customerAddress()
The IP address assigned to the customer interface.
- Returns:
- The IP address assigned to the customer interface.
-
toBuilder
public NewBGPPeer.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<NewBGPPeer.Builder,NewBGPPeer>
-
builder
public static NewBGPPeer.Builder builder()
-
serializableBuilderClass
public static Class<? extends NewBGPPeer.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.
-
-