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 Details

    • AdvertisedPublicPrefixProperties

      public AdvertisedPublicPrefixProperties()
      Creates an instance of AdvertisedPublicPrefixProperties class.
  • Method Details

    • prefix

      public String prefix()
      Get the prefix property: Advertised Public Prefix.
      Returns:
      the prefix 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.
    • validationId

      public String validationId()
      Get the validationId property: Validation string that contains circuit peering info.
      Returns:
      the validationId value.
    • 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.
    • signature

      public String signature()
      Get the signature property: Signed string generated by encrypting validationId with a private key.
      Returns:
      the signature value.
    • 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.
    • 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.