Class CustomIpPrefixPropertiesFormat

java.lang.Object
com.azure.resourcemanager.network.fluent.models.CustomIpPrefixPropertiesFormat
All Implemented Interfaces:
com.azure.json.JsonSerializable<CustomIpPrefixPropertiesFormat>

public final class CustomIpPrefixPropertiesFormat extends Object implements com.azure.json.JsonSerializable<CustomIpPrefixPropertiesFormat>
Custom IP prefix properties.
  • Constructor Details

    • CustomIpPrefixPropertiesFormat

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

    • asn

      public String asn()
      Get the asn property: The ASN for CIDR advertising. Should be an integer as string.
      Returns:
      the asn value.
    • withAsn

      public CustomIpPrefixPropertiesFormat withAsn(String asn)
      Set the asn property: The ASN for CIDR advertising. Should be an integer as string.
      Parameters:
      asn - the asn value to set.
      Returns:
      the CustomIpPrefixPropertiesFormat object itself.
    • cidr

      public String cidr()
      Get the cidr property: The prefix range in CIDR notation. Should include the start address and the prefix length.
      Returns:
      the cidr value.
    • withCidr

      public CustomIpPrefixPropertiesFormat withCidr(String cidr)
      Set the cidr property: The prefix range in CIDR notation. Should include the start address and the prefix length.
      Parameters:
      cidr - the cidr value to set.
      Returns:
      the CustomIpPrefixPropertiesFormat object itself.
    • signedMessage

      public String signedMessage()
      Get the signedMessage property: Signed message for WAN validation.
      Returns:
      the signedMessage value.
    • withSignedMessage

      public CustomIpPrefixPropertiesFormat withSignedMessage(String signedMessage)
      Set the signedMessage property: Signed message for WAN validation.
      Parameters:
      signedMessage - the signedMessage value to set.
      Returns:
      the CustomIpPrefixPropertiesFormat object itself.
    • authorizationMessage

      public String authorizationMessage()
      Get the authorizationMessage property: Authorization message for WAN validation.
      Returns:
      the authorizationMessage value.
    • withAuthorizationMessage

      public CustomIpPrefixPropertiesFormat withAuthorizationMessage(String authorizationMessage)
      Set the authorizationMessage property: Authorization message for WAN validation.
      Parameters:
      authorizationMessage - the authorizationMessage value to set.
      Returns:
      the CustomIpPrefixPropertiesFormat object itself.
    • customIpPrefixParent

      public com.azure.core.management.SubResource customIpPrefixParent()
      Get the customIpPrefixParent property: The Parent CustomIpPrefix for IPv6 /64 CustomIpPrefix.
      Returns:
      the customIpPrefixParent value.
    • withCustomIpPrefixParent

      public CustomIpPrefixPropertiesFormat withCustomIpPrefixParent(com.azure.core.management.SubResource customIpPrefixParent)
      Set the customIpPrefixParent property: The Parent CustomIpPrefix for IPv6 /64 CustomIpPrefix.
      Parameters:
      customIpPrefixParent - the customIpPrefixParent value to set.
      Returns:
      the CustomIpPrefixPropertiesFormat object itself.
    • childCustomIpPrefixes

      public List<com.azure.core.management.SubResource> childCustomIpPrefixes()
      Get the childCustomIpPrefixes property: The list of all Children for IPv6 /48 CustomIpPrefix.
      Returns:
      the childCustomIpPrefixes value.
    • commissionedState

      public CommissionedState commissionedState()
      Get the commissionedState property: The commissioned state of the Custom IP Prefix.
      Returns:
      the commissionedState value.
    • withCommissionedState

      public CustomIpPrefixPropertiesFormat withCommissionedState(CommissionedState commissionedState)
      Set the commissionedState property: The commissioned state of the Custom IP Prefix.
      Parameters:
      commissionedState - the commissionedState value to set.
      Returns:
      the CustomIpPrefixPropertiesFormat object itself.
    • expressRouteAdvertise

      public Boolean expressRouteAdvertise()
      Get the expressRouteAdvertise property: Whether to do express route advertise.
      Returns:
      the expressRouteAdvertise value.
    • withExpressRouteAdvertise

      public CustomIpPrefixPropertiesFormat withExpressRouteAdvertise(Boolean expressRouteAdvertise)
      Set the expressRouteAdvertise property: Whether to do express route advertise.
      Parameters:
      expressRouteAdvertise - the expressRouteAdvertise value to set.
      Returns:
      the CustomIpPrefixPropertiesFormat object itself.
    • geo

      public Geo geo()
      Get the geo property: The Geo for CIDR advertising. Should be an Geo code.
      Returns:
      the geo value.
    • withGeo

      public CustomIpPrefixPropertiesFormat withGeo(Geo geo)
      Set the geo property: The Geo for CIDR advertising. Should be an Geo code.
      Parameters:
      geo - the geo value to set.
      Returns:
      the CustomIpPrefixPropertiesFormat object itself.
    • noInternetAdvertise

      public Boolean noInternetAdvertise()
      Get the noInternetAdvertise property: Whether to Advertise the range to Internet.
      Returns:
      the noInternetAdvertise value.
    • withNoInternetAdvertise

      public CustomIpPrefixPropertiesFormat withNoInternetAdvertise(Boolean noInternetAdvertise)
      Set the noInternetAdvertise property: Whether to Advertise the range to Internet.
      Parameters:
      noInternetAdvertise - the noInternetAdvertise value to set.
      Returns:
      the CustomIpPrefixPropertiesFormat object itself.
    • prefixType

      public CustomIpPrefixType prefixType()
      Get the prefixType property: Type of custom IP prefix. Should be Singular, Parent, or Child.
      Returns:
      the prefixType value.
    • withPrefixType

      public CustomIpPrefixPropertiesFormat withPrefixType(CustomIpPrefixType prefixType)
      Set the prefixType property: Type of custom IP prefix. Should be Singular, Parent, or Child.
      Parameters:
      prefixType - the prefixType value to set.
      Returns:
      the CustomIpPrefixPropertiesFormat object itself.
    • publicIpPrefixes

      public List<com.azure.core.management.SubResource> publicIpPrefixes()
      Get the publicIpPrefixes property: The list of all referenced PublicIpPrefixes.
      Returns:
      the publicIpPrefixes value.
    • resourceGuid

      public String resourceGuid()
      Get the resourceGuid property: The resource GUID property of the custom IP prefix resource.
      Returns:
      the resourceGuid value.
    • failedReason

      public String failedReason()
      Get the failedReason property: The reason why resource is in failed state.
      Returns:
      the failedReason value.
    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: The provisioning state of the custom IP prefix resource.
      Returns:
      the provisioningState 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<CustomIpPrefixPropertiesFormat>
      Throws:
      IOException
    • fromJson

      public static CustomIpPrefixPropertiesFormat fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of CustomIpPrefixPropertiesFormat from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of CustomIpPrefixPropertiesFormat 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 CustomIpPrefixPropertiesFormat.