Class AdvertisedPublicPrefixProperties
java.lang.Object
com.azure.resourcemanager.network.models.AdvertisedPublicPrefixProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AdvertisedPublicPrefixProperties>
public final class AdvertisedPublicPrefixProperties
extends Object
implements com.azure.json.JsonSerializable<AdvertisedPublicPrefixProperties>
Prefix properties required to perform validation using openssl signature.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AdvertisedPublicPrefixProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AdvertisedPublicPrefixProperties from the JsonReader.prefix()Get the prefix property: Advertised Public Prefix.Get the signature property: Signed string generated by encrypting validationId with a private key.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the validationId property: Validation string that contains circuit peering info.Get the validationState property: Advertised Public Prefix State that denotes if the prefix is validated or not.withPrefix(String prefix) Set the prefix property: Advertised Public Prefix.withSignature(String signature) Set the signature property: Signed string generated by encrypting validationId with a private key.withValidationId(String validationId) Set the validationId property: Validation string that contains circuit peering info.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AdvertisedPublicPrefixProperties
public AdvertisedPublicPrefixProperties()Creates an instance of AdvertisedPublicPrefixProperties class.
-
-
Method Details
-
prefix
Get the prefix property: Advertised Public Prefix.- Returns:
- the prefix value.
-
withPrefix
Set the prefix property: Advertised Public Prefix.- Parameters:
prefix- the prefix value to set.- Returns:
- the AdvertisedPublicPrefixProperties object itself.
-
validationId
Get the validationId property: Validation string that contains circuit peering info.- Returns:
- the validationId value.
-
withValidationId
Set the validationId property: Validation string that contains circuit peering info.- Parameters:
validationId- the validationId value to set.- Returns:
- the AdvertisedPublicPrefixProperties object itself.
-
signature
Get the signature property: Signed string generated by encrypting validationId with a private key.- Returns:
- the signature value.
-
withSignature
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.
-
validationState
Get the validationState property: Advertised Public Prefix State that denotes if the prefix is validated or not.- Returns:
- the validationState value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AdvertisedPublicPrefixProperties>- Throws:
IOException
-
fromJson
public static AdvertisedPublicPrefixProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-