PeerAsnProperties Class
- java.
lang. Object - com.
azure. resourcemanager. peering. fluent. models. PeerAsnProperties
- com.
Implements
public final class PeerAsnProperties
implements JsonSerializable<PeerAsnProperties>
The properties that define a peer's ASN.
Constructor Summary
| Constructor | Description |
|---|---|
| PeerAsnProperties() |
Creates an instance of Peer |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
errorMessage()
Get the error |
|
static
Peer |
fromJson(JsonReader jsonReader)
Reads an instance of Peer |
| Integer |
peerAsn()
Get the peer |
|
List<Contact |
peerContactDetail()
Get the peer |
| String |
peerName()
Get the peer |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Validation |
validationState()
Get the validation |
|
Peer |
withPeerAsn(Integer peerAsn)
Set the peer |
|
Peer |
withPeerContactDetail(List<ContactDetail> peerContactDetail)
Set the peer |
|
Peer |
withPeerName(String peerName)
Set the peer |
|
Peer |
withValidationState(ValidationState validationState)
Set the validation |
Methods inherited from java.lang.Object
Constructor Details
PeerAsnProperties
public PeerAsnProperties()
Creates an instance of PeerAsnProperties class.
Method Details
errorMessage
public String errorMessage()
Get the errorMessage property: The error message for the validation state.
Returns:
fromJson
public static PeerAsnProperties fromJson(JsonReader jsonReader)
Reads an instance of PeerAsnProperties from the JsonReader.
Parameters:
Returns:
Throws:
peerAsn
public Integer peerAsn()
Get the peerAsn property: The Autonomous System Number (ASN) of the peer.
Returns:
peerContactDetail
public List<ContactDetail> peerContactDetail()
Get the peerContactDetail property: The contact details of the peer.
Returns:
peerName
public String peerName()
Get the peerName property: The name of the peer.
Returns:
toJson
validate
public void validate()
Validates the instance.
validationState
public ValidationState validationState()
Get the validationState property: The validation state of the ASN associated with the peer.
Returns:
withPeerAsn
public PeerAsnProperties withPeerAsn(Integer peerAsn)
Set the peerAsn property: The Autonomous System Number (ASN) of the peer.
Parameters:
Returns:
withPeerContactDetail
public PeerAsnProperties withPeerContactDetail(List<ContactDetail> peerContactDetail)
Set the peerContactDetail property: The contact details of the peer.
Parameters:
Returns:
withPeerName
public PeerAsnProperties withPeerName(String peerName)
Set the peerName property: The name of the peer.
Parameters:
Returns:
withValidationState
public PeerAsnProperties withValidationState(ValidationState validationState)
Set the validationState property: The validation state of the ASN associated with the peer.
Parameters:
Returns: