Condividi tramite


AdvertisedPublicPrefixProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.AdvertisedPublicPrefixProperties

Implements

public final class AdvertisedPublicPrefixProperties
implements JsonSerializable<AdvertisedPublicPrefixProperties>

Prefix properties required to perform validation using openssl signature.

Constructor Summary

Constructor Description
AdvertisedPublicPrefixProperties()

Creates an instance of AdvertisedPublicPrefixProperties class.

Method Summary

Modifier and Type Method and Description
static AdvertisedPublicPrefixProperties fromJson(JsonReader jsonReader)

Reads an instance of AdvertisedPublicPrefixProperties from the JsonReader.

String prefix()

Get the prefix property: Advertised Public Prefix.

String signature()

Get the signature property: Signed string generated by encrypting validationId with a private key.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String validationId()

Get the validationId property: Validation string that contains circuit peering info.

AdvertisedPublicPrefixPropertiesValidationState validationState()

Get the validationState property: Advertised Public Prefix State that denotes if the prefix is validated or not.

AdvertisedPublicPrefixProperties withPrefix(String prefix)

Set the prefix property: Advertised Public Prefix.

AdvertisedPublicPrefixProperties withSignature(String signature)

Set the signature property: Signed string generated by encrypting validationId with a private key.

AdvertisedPublicPrefixProperties withValidationId(String validationId)

Set the validationId property: Validation string that contains circuit peering info.

Methods inherited from java.lang.Object

Constructor Details

AdvertisedPublicPrefixProperties

public AdvertisedPublicPrefixProperties()

Creates an instance of AdvertisedPublicPrefixProperties class.

Method Details

fromJson

public static AdvertisedPublicPrefixProperties fromJson(JsonReader jsonReader)

Reads an instance of AdvertisedPublicPrefixProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

prefix

public String prefix()

Get the prefix property: Advertised Public Prefix.

Returns:

the prefix value.

signature

public String signature()

Get the signature property: Signed string generated by encrypting validationId with a private key.

Returns:

the signature value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

validationId

public String validationId()

Get the validationId property: Validation string that contains circuit peering info.

Returns:

the validationId value.

validationState

public AdvertisedPublicPrefixPropertiesValidationState validationState()

Get the validationState property: Advertised Public Prefix State that denotes if the prefix is validated or not.

Returns:

the validationState value.

withPrefix

public AdvertisedPublicPrefixProperties withPrefix(String prefix)

Set the prefix property: Advertised Public Prefix.

Parameters:

prefix - the prefix value to set.

Returns:

the AdvertisedPublicPrefixProperties object itself.

withSignature

public AdvertisedPublicPrefixProperties withSignature(String signature)

Set the signature property: Signed string generated by encrypting validationId with a private key.

Parameters:

signature - the signature value to set.

Returns:

the AdvertisedPublicPrefixProperties object itself.

withValidationId

public AdvertisedPublicPrefixProperties withValidationId(String validationId)

Set the validationId property: Validation string that contains circuit peering info.

Parameters:

validationId - the validationId value to set.

Returns:

the AdvertisedPublicPrefixProperties object itself.

Applies to