PeeringServicePrefixInner Class

public final class PeeringServicePrefixInner
extends ProxyResource

The peering service prefix class.

Constructor Summary

Constructor Description
PeeringServicePrefixInner()

Creates an instance of PeeringServicePrefixInner 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 PeeringServicePrefixInner fromJson(JsonReader jsonReader)

Reads an instance of PeeringServicePrefixInner from the JsonReader.

String id()

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

LearnedType learnedType()

Get the learnedType property: The prefix learned type.

String name()

Get the name property: The name of the resource.

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)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

PeeringServicePrefixInner withPeeringServicePrefixKey(String peeringServicePrefixKey)

Set the peeringServicePrefixKey property: The peering service prefix key.

PeeringServicePrefixInner withPrefix(String prefix)

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

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

PeeringServicePrefixInner

public PeeringServicePrefixInner()

Creates an instance of PeeringServicePrefixInner 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 PeeringServicePrefixInner fromJson(JsonReader jsonReader)

Reads an instance of PeeringServicePrefixInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PeeringServicePrefixInner 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:

PeeringServicePrefixInner.id()

Returns:

the id value.

learnedType

public LearnedType learnedType()

Get the learnedType property: The prefix learned type.

Returns:

the learnedType value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

PeeringServicePrefixInner.name()

Returns:

the name 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)

Overrides:

PeeringServicePrefixInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

PeeringServicePrefixInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withPeeringServicePrefixKey

public PeeringServicePrefixInner withPeeringServicePrefixKey(String peeringServicePrefixKey)

Set the peeringServicePrefixKey property: The peering service prefix key.

Parameters:

peeringServicePrefixKey - the peeringServicePrefixKey value to set.

Returns:

the PeeringServicePrefixInner object itself.

withPrefix

public PeeringServicePrefixInner withPrefix(String prefix)

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

Parameters:

prefix - the prefix value to set.

Returns:

the PeeringServicePrefixInner object itself.

Applies to