PeerAsnInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. peering. fluent. models. PeerAsnInner
- com.
- com.
public final class PeerAsnInner
extends ProxyResource
The essential information related to the peer's ASN.
Constructor Summary
| Constructor | Description |
|---|---|
| PeerAsnInner() |
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 |
| String |
id()
Get the id property: Fully qualified resource Id for the resource. |
| String |
name()
Get the name property: The name of the resource. |
| Integer |
peerAsn()
Get the peer |
|
List<Contact |
peerContactDetail()
Get the peer |
| String |
peerName()
Get the peer |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| 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 ProxyResource
Methods inherited from java.lang.Object
Constructor Details
PeerAsnInner
public PeerAsnInner()
Creates an instance of PeerAsnInner class.
Method Details
errorMessage
public String errorMessage()
Get the errorMessage property: The error message for the validation state.
Returns:
fromJson
public static PeerAsnInner fromJson(JsonReader jsonReader)
Reads an instance of PeerAsnInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
PeerAsnInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
PeerAsnInner.name()Returns:
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
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
PeerAsnInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
PeerAsnInner.type()Returns:
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 PeerAsnInner withPeerAsn(Integer peerAsn)
Set the peerAsn property: The Autonomous System Number (ASN) of the peer.
Parameters:
Returns:
withPeerContactDetail
public PeerAsnInner withPeerContactDetail(List<ContactDetail> peerContactDetail)
Set the peerContactDetail property: The contact details of the peer.
Parameters:
Returns:
withPeerName
public PeerAsnInner withPeerName(String peerName)
Set the peerName property: The name of the peer.
Parameters:
Returns:
withValidationState
public PeerAsnInner withValidationState(ValidationState validationState)
Set the validationState property: The validation state of the ASN associated with the peer.
Parameters:
Returns: