Class BgpSession
java.lang.Object
com.azure.resourcemanager.peering.models.BgpSession
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BgpSession>
The properties that define a BGP session.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BgpSessionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BgpSession from the JsonReader.Get the maxPrefixesAdvertisedV4 property: The maximum number of prefixes advertised over the IPv4 session.Get the maxPrefixesAdvertisedV6 property: The maximum number of prefixes advertised over the IPv6 session.Get the md5AuthenticationKey property: The MD5 authentication key of the session.Get the microsoftSessionIPv4Address property: The IPv4 session address on Microsoft's end.Get the microsoftSessionIPv6Address property: The IPv6 session address on Microsoft's end.Get the peerSessionIPv4Address property: The IPv4 session address on peer's end.Get the peerSessionIPv6Address property: The IPv6 session address on peer's end.Get the sessionPrefixV4 property: The IPv4 prefix that contains both ends' IPv4 addresses.Get the sessionPrefixV6 property: The IPv6 prefix that contains both ends' IPv6 addresses.Get the sessionStateV4 property: The state of the IPv4 session.Get the sessionStateV6 property: The state of the IPv6 session.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withMaxPrefixesAdvertisedV4(Integer maxPrefixesAdvertisedV4) Set the maxPrefixesAdvertisedV4 property: The maximum number of prefixes advertised over the IPv4 session.withMaxPrefixesAdvertisedV6(Integer maxPrefixesAdvertisedV6) Set the maxPrefixesAdvertisedV6 property: The maximum number of prefixes advertised over the IPv6 session.withMd5AuthenticationKey(String md5AuthenticationKey) Set the md5AuthenticationKey property: The MD5 authentication key of the session.withMicrosoftSessionIPv4Address(String microsoftSessionIPv4Address) Set the microsoftSessionIPv4Address property: The IPv4 session address on Microsoft's end.withMicrosoftSessionIPv6Address(String microsoftSessionIPv6Address) Set the microsoftSessionIPv6Address property: The IPv6 session address on Microsoft's end.withPeerSessionIPv4Address(String peerSessionIPv4Address) Set the peerSessionIPv4Address property: The IPv4 session address on peer's end.withPeerSessionIPv6Address(String peerSessionIPv6Address) Set the peerSessionIPv6Address property: The IPv6 session address on peer's end.withSessionPrefixV4(String sessionPrefixV4) Set the sessionPrefixV4 property: The IPv4 prefix that contains both ends' IPv4 addresses.withSessionPrefixV6(String sessionPrefixV6) Set the sessionPrefixV6 property: The IPv6 prefix that contains both ends' IPv6 addresses.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
BgpSession
public BgpSession()Creates an instance of BgpSession class.
-
-
Method Details
-
sessionPrefixV4
Get the sessionPrefixV4 property: The IPv4 prefix that contains both ends' IPv4 addresses.- Returns:
- the sessionPrefixV4 value.
-
withSessionPrefixV4
Set the sessionPrefixV4 property: The IPv4 prefix that contains both ends' IPv4 addresses.- Parameters:
sessionPrefixV4- the sessionPrefixV4 value to set.- Returns:
- the BgpSession object itself.
-
sessionPrefixV6
Get the sessionPrefixV6 property: The IPv6 prefix that contains both ends' IPv6 addresses.- Returns:
- the sessionPrefixV6 value.
-
withSessionPrefixV6
Set the sessionPrefixV6 property: The IPv6 prefix that contains both ends' IPv6 addresses.- Parameters:
sessionPrefixV6- the sessionPrefixV6 value to set.- Returns:
- the BgpSession object itself.
-
microsoftSessionIPv4Address
Get the microsoftSessionIPv4Address property: The IPv4 session address on Microsoft's end.- Returns:
- the microsoftSessionIPv4Address value.
-
withMicrosoftSessionIPv4Address
Set the microsoftSessionIPv4Address property: The IPv4 session address on Microsoft's end.- Parameters:
microsoftSessionIPv4Address- the microsoftSessionIPv4Address value to set.- Returns:
- the BgpSession object itself.
-
microsoftSessionIPv6Address
Get the microsoftSessionIPv6Address property: The IPv6 session address on Microsoft's end.- Returns:
- the microsoftSessionIPv6Address value.
-
withMicrosoftSessionIPv6Address
Set the microsoftSessionIPv6Address property: The IPv6 session address on Microsoft's end.- Parameters:
microsoftSessionIPv6Address- the microsoftSessionIPv6Address value to set.- Returns:
- the BgpSession object itself.
-
peerSessionIPv4Address
Get the peerSessionIPv4Address property: The IPv4 session address on peer's end.- Returns:
- the peerSessionIPv4Address value.
-
withPeerSessionIPv4Address
Set the peerSessionIPv4Address property: The IPv4 session address on peer's end.- Parameters:
peerSessionIPv4Address- the peerSessionIPv4Address value to set.- Returns:
- the BgpSession object itself.
-
peerSessionIPv6Address
Get the peerSessionIPv6Address property: The IPv6 session address on peer's end.- Returns:
- the peerSessionIPv6Address value.
-
withPeerSessionIPv6Address
Set the peerSessionIPv6Address property: The IPv6 session address on peer's end.- Parameters:
peerSessionIPv6Address- the peerSessionIPv6Address value to set.- Returns:
- the BgpSession object itself.
-
sessionStateV4
Get the sessionStateV4 property: The state of the IPv4 session.- Returns:
- the sessionStateV4 value.
-
sessionStateV6
Get the sessionStateV6 property: The state of the IPv6 session.- Returns:
- the sessionStateV6 value.
-
maxPrefixesAdvertisedV4
Get the maxPrefixesAdvertisedV4 property: The maximum number of prefixes advertised over the IPv4 session.- Returns:
- the maxPrefixesAdvertisedV4 value.
-
withMaxPrefixesAdvertisedV4
Set the maxPrefixesAdvertisedV4 property: The maximum number of prefixes advertised over the IPv4 session.- Parameters:
maxPrefixesAdvertisedV4- the maxPrefixesAdvertisedV4 value to set.- Returns:
- the BgpSession object itself.
-
maxPrefixesAdvertisedV6
Get the maxPrefixesAdvertisedV6 property: The maximum number of prefixes advertised over the IPv6 session.- Returns:
- the maxPrefixesAdvertisedV6 value.
-
withMaxPrefixesAdvertisedV6
Set the maxPrefixesAdvertisedV6 property: The maximum number of prefixes advertised over the IPv6 session.- Parameters:
maxPrefixesAdvertisedV6- the maxPrefixesAdvertisedV6 value to set.- Returns:
- the BgpSession object itself.
-
md5AuthenticationKey
Get the md5AuthenticationKey property: The MD5 authentication key of the session.- Returns:
- the md5AuthenticationKey value.
-
withMd5AuthenticationKey
Set the md5AuthenticationKey property: The MD5 authentication key of the session.- Parameters:
md5AuthenticationKey- the md5AuthenticationKey value to set.- Returns:
- the BgpSession object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<BgpSession>- Throws:
IOException
-
fromJson
Reads an instance of BgpSession from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BgpSession if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the BgpSession.
-