PeerAsnProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.peering.fluent.models.PeerAsnProperties

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 PeerAsnProperties class.

Method Summary

Modifier and Type Method and Description
String errorMessage()

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

static PeerAsnProperties fromJson(JsonReader jsonReader)

Reads an instance of PeerAsnProperties from the JsonReader.

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)
void validate()

Validates the instance.

ValidationState validationState()

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

PeerAsnProperties withPeerAsn(Integer peerAsn)

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

PeerAsnProperties withPeerContactDetail(List<ContactDetail> peerContactDetail)

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

PeerAsnProperties withPeerName(String peerName)

Set the peerName property: The name of the peer.

PeerAsnProperties withValidationState(ValidationState validationState)

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

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:

the errorMessage value.

fromJson

public static PeerAsnProperties fromJson(JsonReader jsonReader)

Reads an instance of PeerAsnProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PeerAsnProperties 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 PeerAsnProperties.

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)

Parameters:

jsonWriter

Throws:

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 PeerAsnProperties withPeerAsn(Integer peerAsn)

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

Parameters:

peerAsn - the peerAsn value to set.

Returns:

the PeerAsnProperties object itself.

withPeerContactDetail

public PeerAsnProperties withPeerContactDetail(List<ContactDetail> peerContactDetail)

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

Parameters:

peerContactDetail - the peerContactDetail value to set.

Returns:

the PeerAsnProperties object itself.

withPeerName

public PeerAsnProperties withPeerName(String peerName)

Set the peerName property: The name of the peer.

Parameters:

peerName - the peerName value to set.

Returns:

the PeerAsnProperties object itself.

withValidationState

public PeerAsnProperties 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 PeerAsnProperties object itself.

Applies to