Compartir por


PeerAsnInner Class

public final class PeerAsnInner
extends ProxyResource

The essential information related to the peer's ASN.

Constructor Summary

Constructor Description
PeerAsnInner()

Creates an instance of PeerAsnInner class.

Method Summary

Modifier and Type Method and Description
String errorMessage()

Get the errorMessage property: The error message for the validation state.

static PeerAsnInner fromJson(JsonReader jsonReader)

Reads an instance of PeerAsnInner from the JsonReader.

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 peerAsn property: The Autonomous System Number (ASN) of the peer.

List<ContactDetail> peerContactDetail()

Get the peerContactDetail property: The contact details of the peer.

String peerName()

Get the peerName property: The name of the peer.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

ValidationState validationState()

Get the validationState property: The validation state of the ASN associated with the peer.

PeerAsnInner withPeerAsn(Integer peerAsn)

Set the peerAsn property: The Autonomous System Number (ASN) of the peer.

PeerAsnInner withPeerContactDetail(List<ContactDetail> peerContactDetail)

Set the peerContactDetail property: The contact details of the peer.

PeerAsnInner withPeerName(String peerName)

Set the peerName property: The name of the peer.

PeerAsnInner withValidationState(ValidationState validationState)

Set the validationState property: The validation state of the ASN associated with the peer.

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:

the errorMessage value.

fromJson

public static PeerAsnInner fromJson(JsonReader jsonReader)

Reads an instance of PeerAsnInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PeerAsnInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

PeerAsnInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

PeerAsnInner.name()

Returns:

the name value.

peerAsn

public Integer peerAsn()

Get the peerAsn property: The Autonomous System Number (ASN) of the peer.

Returns:

the peerAsn value.

peerContactDetail

public List<ContactDetail> peerContactDetail()

Get the peerContactDetail property: The contact details of the peer.

Returns:

the peerContactDetail value.

peerName

public String peerName()

Get the peerName property: The name of the peer.

Returns:

the peerName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

PeerAsnInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

PeerAsnInner.type()

Returns:

the type value.

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:

the validationState value.

withPeerAsn

public PeerAsnInner withPeerAsn(Integer peerAsn)

Set the peerAsn property: The Autonomous System Number (ASN) of the peer.

Parameters:

peerAsn - the peerAsn value to set.

Returns:

the PeerAsnInner object itself.

withPeerContactDetail

public PeerAsnInner withPeerContactDetail(List<ContactDetail> peerContactDetail)

Set the peerContactDetail property: The contact details of the peer.

Parameters:

peerContactDetail - the peerContactDetail value to set.

Returns:

the PeerAsnInner object itself.

withPeerName

public PeerAsnInner withPeerName(String peerName)

Set the peerName property: The name of the peer.

Parameters:

peerName - the peerName value to set.

Returns:

the PeerAsnInner object itself.

withValidationState

public PeerAsnInner withValidationState(ValidationState validationState)

Set the validationState property: The validation state of the ASN associated with the peer.

Parameters:

validationState - the validationState value to set.

Returns:

the PeerAsnInner object itself.

Applies to