PeeringServicePrefixProperties Class

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

Implements

public final class PeeringServicePrefixProperties
implements JsonSerializable<PeeringServicePrefixProperties>

The peering service prefix properties class.

Constructor Summary

Constructor Description
PeeringServicePrefixProperties()

Creates an instance of PeeringServicePrefixProperties class.

Method Summary

Modifier and Type Method and Description
String errorMessage()

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

List<PeeringServicePrefixEvent> events()

Get the events property: The list of events for peering service prefix.

static PeeringServicePrefixProperties fromJson(JsonReader jsonReader)

Reads an instance of PeeringServicePrefixProperties from the JsonReader.

LearnedType learnedType()

Get the learnedType property: The prefix learned type.

String peeringServicePrefixKey()

Get the peeringServicePrefixKey property: The peering service prefix key.

String prefix()

Get the prefix property: The prefix from which your traffic originates.

PrefixValidationState prefixValidationState()

Get the prefixValidationState property: The prefix validation state.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PeeringServicePrefixProperties withPeeringServicePrefixKey(String peeringServicePrefixKey)

Set the peeringServicePrefixKey property: The peering service prefix key.

PeeringServicePrefixProperties withPrefix(String prefix)

Set the prefix property: The prefix from which your traffic originates.

Methods inherited from java.lang.Object

Constructor Details

PeeringServicePrefixProperties

public PeeringServicePrefixProperties()

Creates an instance of PeeringServicePrefixProperties class.

Method Details

errorMessage

public String errorMessage()

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

Returns:

the errorMessage value.

events

public List<PeeringServicePrefixEvent> events()

Get the events property: The list of events for peering service prefix.

Returns:

the events value.

fromJson

public static PeeringServicePrefixProperties fromJson(JsonReader jsonReader)

Reads an instance of PeeringServicePrefixProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

learnedType

public LearnedType learnedType()

Get the learnedType property: The prefix learned type.

Returns:

the learnedType value.

peeringServicePrefixKey

public String peeringServicePrefixKey()

Get the peeringServicePrefixKey property: The peering service prefix key.

Returns:

the peeringServicePrefixKey value.

prefix

public String prefix()

Get the prefix property: The prefix from which your traffic originates.

Returns:

the prefix value.

prefixValidationState

public PrefixValidationState prefixValidationState()

Get the prefixValidationState property: The prefix validation state.

Returns:

the prefixValidationState value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the resource.

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withPeeringServicePrefixKey

public PeeringServicePrefixProperties withPeeringServicePrefixKey(String peeringServicePrefixKey)

Set the peeringServicePrefixKey property: The peering service prefix key.

Parameters:

peeringServicePrefixKey - the peeringServicePrefixKey value to set.

Returns:

the PeeringServicePrefixProperties object itself.

withPrefix

public PeeringServicePrefixProperties withPrefix(String prefix)

Set the prefix property: The prefix from which your traffic originates.

Parameters:

prefix - the prefix value to set.

Returns:

the PeeringServicePrefixProperties object itself.

Applies to