Class PortalConfigDelegationProperties

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

public final class PortalConfigDelegationProperties extends Object implements com.azure.json.JsonSerializable<PortalConfigDelegationProperties>
The PortalConfigDelegationProperties model.
  • Constructor Details

    • PortalConfigDelegationProperties

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

    • delegateRegistration

      public Boolean delegateRegistration()
      Get the delegateRegistration property: Enable or disable delegation for user registration.
      Returns:
      the delegateRegistration value.
    • withDelegateRegistration

      public PortalConfigDelegationProperties withDelegateRegistration(Boolean delegateRegistration)
      Set the delegateRegistration property: Enable or disable delegation for user registration.
      Parameters:
      delegateRegistration - the delegateRegistration value to set.
      Returns:
      the PortalConfigDelegationProperties object itself.
    • delegateSubscription

      public Boolean delegateSubscription()
      Get the delegateSubscription property: Enable or disable delegation for product subscriptions.
      Returns:
      the delegateSubscription value.
    • withDelegateSubscription

      public PortalConfigDelegationProperties withDelegateSubscription(Boolean delegateSubscription)
      Set the delegateSubscription property: Enable or disable delegation for product subscriptions.
      Parameters:
      delegateSubscription - the delegateSubscription value to set.
      Returns:
      the PortalConfigDelegationProperties object itself.
    • delegationUrl

      public String delegationUrl()
      Get the delegationUrl property: A delegation endpoint URL.
      Returns:
      the delegationUrl value.
    • withDelegationUrl

      public PortalConfigDelegationProperties withDelegationUrl(String delegationUrl)
      Set the delegationUrl property: A delegation endpoint URL.
      Parameters:
      delegationUrl - the delegationUrl value to set.
      Returns:
      the PortalConfigDelegationProperties object itself.
    • validationKey

      public String validationKey()
      Get the validationKey property: A base64-encoded validation key to ensure requests originate from Azure API Management service.
      Returns:
      the validationKey value.
    • withValidationKey

      public PortalConfigDelegationProperties withValidationKey(String validationKey)
      Set the validationKey property: A base64-encoded validation key to ensure requests originate from Azure API Management service.
      Parameters:
      validationKey - the validationKey value to set.
      Returns:
      the PortalConfigDelegationProperties 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<PortalConfigDelegationProperties>
      Throws:
      IOException
    • fromJson

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