BgpSession Class
- java.
lang. Object - com.
azure. resourcemanager. peering. models. BgpSession
- com.
Implements
public final class BgpSession
implements JsonSerializable<BgpSession>
The properties that define a BGP session.
Constructor Summary
| Constructor | Description |
|---|---|
| BgpSession() |
Creates an instance of Bgp |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Bgp |
fromJson(JsonReader jsonReader)
Reads an instance of Bgp |
| Integer |
maxPrefixesAdvertisedV4()
Get the max |
| Integer |
maxPrefixesAdvertisedV6()
Get the max |
| String |
md5AuthenticationKey()
Get the md5Authentication |
| String |
microsoftSessionIPv4Address()
Get the microsoft |
| String |
microsoftSessionIPv6Address()
Get the microsoft |
| String |
peerSessionIPv4Address()
Get the peer |
| String |
peerSessionIPv6Address()
Get the peer |
| String |
sessionPrefixV4()
Get the session |
| String |
sessionPrefixV6()
Get the session |
|
Session |
sessionStateV4()
Get the session |
|
Session |
sessionStateV6()
Get the session |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Bgp |
withMaxPrefixesAdvertisedV4(Integer maxPrefixesAdvertisedV4)
Set the max |
|
Bgp |
withMaxPrefixesAdvertisedV6(Integer maxPrefixesAdvertisedV6)
Set the max |
|
Bgp |
withMd5AuthenticationKey(String md5AuthenticationKey)
Set the md5Authentication |
|
Bgp |
withMicrosoftSessionIPv4Address(String microsoftSessionIPv4Address)
Set the microsoft |
|
Bgp |
withMicrosoftSessionIPv6Address(String microsoftSessionIPv6Address)
Set the microsoft |
|
Bgp |
withPeerSessionIPv4Address(String peerSessionIPv4Address)
Set the peer |
|
Bgp |
withPeerSessionIPv6Address(String peerSessionIPv6Address)
Set the peer |
|
Bgp |
withSessionPrefixV4(String sessionPrefixV4)
Set the session |
|
Bgp |
withSessionPrefixV6(String sessionPrefixV6)
Set the session |
Methods inherited from java.lang.Object
Constructor Details
BgpSession
public BgpSession()
Creates an instance of BgpSession class.
Method Details
fromJson
public static BgpSession fromJson(JsonReader jsonReader)
Reads an instance of BgpSession from the JsonReader.
Parameters:
Returns:
Throws:
maxPrefixesAdvertisedV4
public Integer maxPrefixesAdvertisedV4()
Get the maxPrefixesAdvertisedV4 property: The maximum number of prefixes advertised over the IPv4 session.
Returns:
maxPrefixesAdvertisedV6
public Integer maxPrefixesAdvertisedV6()
Get the maxPrefixesAdvertisedV6 property: The maximum number of prefixes advertised over the IPv6 session.
Returns:
md5AuthenticationKey
public String md5AuthenticationKey()
Get the md5AuthenticationKey property: The MD5 authentication key of the session.
Returns:
microsoftSessionIPv4Address
public String microsoftSessionIPv4Address()
Get the microsoftSessionIPv4Address property: The IPv4 session address on Microsoft's end.
Returns:
microsoftSessionIPv6Address
public String microsoftSessionIPv6Address()
Get the microsoftSessionIPv6Address property: The IPv6 session address on Microsoft's end.
Returns:
peerSessionIPv4Address
public String peerSessionIPv4Address()
Get the peerSessionIPv4Address property: The IPv4 session address on peer's end.
Returns:
peerSessionIPv6Address
public String peerSessionIPv6Address()
Get the peerSessionIPv6Address property: The IPv6 session address on peer's end.
Returns:
sessionPrefixV4
public String sessionPrefixV4()
Get the sessionPrefixV4 property: The IPv4 prefix that contains both ends' IPv4 addresses.
Returns:
sessionPrefixV6
public String sessionPrefixV6()
Get the sessionPrefixV6 property: The IPv6 prefix that contains both ends' IPv6 addresses.
Returns:
sessionStateV4
public SessionStateV4 sessionStateV4()
Get the sessionStateV4 property: The state of the IPv4 session.
Returns:
sessionStateV6
public SessionStateV6 sessionStateV6()
Get the sessionStateV6 property: The state of the IPv6 session.
Returns:
toJson
validate
public void validate()
Validates the instance.
withMaxPrefixesAdvertisedV4
public BgpSession withMaxPrefixesAdvertisedV4(Integer maxPrefixesAdvertisedV4)
Set the maxPrefixesAdvertisedV4 property: The maximum number of prefixes advertised over the IPv4 session.
Parameters:
Returns:
withMaxPrefixesAdvertisedV6
public BgpSession withMaxPrefixesAdvertisedV6(Integer maxPrefixesAdvertisedV6)
Set the maxPrefixesAdvertisedV6 property: The maximum number of prefixes advertised over the IPv6 session.
Parameters:
Returns:
withMd5AuthenticationKey
public BgpSession withMd5AuthenticationKey(String md5AuthenticationKey)
Set the md5AuthenticationKey property: The MD5 authentication key of the session.
Parameters:
Returns:
withMicrosoftSessionIPv4Address
public BgpSession withMicrosoftSessionIPv4Address(String microsoftSessionIPv4Address)
Set the microsoftSessionIPv4Address property: The IPv4 session address on Microsoft's end.
Parameters:
Returns:
withMicrosoftSessionIPv6Address
public BgpSession withMicrosoftSessionIPv6Address(String microsoftSessionIPv6Address)
Set the microsoftSessionIPv6Address property: The IPv6 session address on Microsoft's end.
Parameters:
Returns:
withPeerSessionIPv4Address
public BgpSession withPeerSessionIPv4Address(String peerSessionIPv4Address)
Set the peerSessionIPv4Address property: The IPv4 session address on peer's end.
Parameters:
Returns:
withPeerSessionIPv6Address
public BgpSession withPeerSessionIPv6Address(String peerSessionIPv6Address)
Set the peerSessionIPv6Address property: The IPv6 session address on peer's end.
Parameters:
Returns:
withSessionPrefixV4
public BgpSession withSessionPrefixV4(String sessionPrefixV4)
Set the sessionPrefixV4 property: The IPv4 prefix that contains both ends' IPv4 addresses.
Parameters:
Returns:
withSessionPrefixV6
public BgpSession withSessionPrefixV6(String sessionPrefixV6)
Set the sessionPrefixV6 property: The IPv6 prefix that contains both ends' IPv6 addresses.
Parameters:
Returns: