Class AuthorizationPropertiesFormat

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

public final class AuthorizationPropertiesFormat extends Object implements com.azure.json.JsonSerializable<AuthorizationPropertiesFormat>
Properties of ExpressRouteCircuitAuthorization.
  • Constructor Details

    • AuthorizationPropertiesFormat

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

    • authorizationKey

      public String authorizationKey()
      Get the authorizationKey property: The authorization key.
      Returns:
      the authorizationKey value.
    • withAuthorizationKey

      public AuthorizationPropertiesFormat withAuthorizationKey(String authorizationKey)
      Set the authorizationKey property: The authorization key.
      Parameters:
      authorizationKey - the authorizationKey value to set.
      Returns:
      the AuthorizationPropertiesFormat object itself.
    • authorizationUseStatus

      public AuthorizationUseStatus authorizationUseStatus()
      Get the authorizationUseStatus property: The authorization use status.
      Returns:
      the authorizationUseStatus value.
    • withAuthorizationUseStatus

      public AuthorizationPropertiesFormat withAuthorizationUseStatus(AuthorizationUseStatus authorizationUseStatus)
      Set the authorizationUseStatus property: The authorization use status.
      Parameters:
      authorizationUseStatus - the authorizationUseStatus value to set.
      Returns:
      the AuthorizationPropertiesFormat object itself.
    • connectionResourceUri

      public String connectionResourceUri()
      Get the connectionResourceUri property: The reference to the ExpressRoute connection resource using the authorization.
      Returns:
      the connectionResourceUri value.
    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: The provisioning state of the authorization 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<AuthorizationPropertiesFormat>
      Throws:
      IOException
    • fromJson

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