Class PortalDelegationSettingsProperties

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

public final class PortalDelegationSettingsProperties extends Object implements com.azure.json.JsonSerializable<PortalDelegationSettingsProperties>
Delegation settings contract properties.
  • Constructor Details

    • PortalDelegationSettingsProperties

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

    • url

      public String url()
      Get the url property: A delegation Url.
      Returns:
      the url value.
    • withUrl

      Set the url property: A delegation Url.
      Parameters:
      url - the url value to set.
      Returns:
      the PortalDelegationSettingsProperties object itself.
    • validationKey

      public String validationKey()
      Get the validationKey property: A base64-encoded validation key to validate, that a request is coming from Azure API Management.
      Returns:
      the validationKey value.
    • withValidationKey

      public PortalDelegationSettingsProperties withValidationKey(String validationKey)
      Set the validationKey property: A base64-encoded validation key to validate, that a request is coming from Azure API Management.
      Parameters:
      validationKey - the validationKey value to set.
      Returns:
      the PortalDelegationSettingsProperties object itself.
    • subscriptions

      Get the subscriptions property: Subscriptions delegation settings.
      Returns:
      the subscriptions value.
    • withSubscriptions

      Set the subscriptions property: Subscriptions delegation settings.
      Parameters:
      subscriptions - the subscriptions value to set.
      Returns:
      the PortalDelegationSettingsProperties object itself.
    • userRegistration

      public RegistrationDelegationSettingsProperties userRegistration()
      Get the userRegistration property: User registration delegation settings.
      Returns:
      the userRegistration value.
    • withUserRegistration

      public PortalDelegationSettingsProperties withUserRegistration(RegistrationDelegationSettingsProperties userRegistration)
      Set the userRegistration property: User registration delegation settings.
      Parameters:
      userRegistration - the userRegistration value to set.
      Returns:
      the PortalDelegationSettingsProperties object itself.
    • 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<PortalDelegationSettingsProperties>
      Throws:
      IOException
    • fromJson

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