Class PartnerAuthorization

java.lang.Object
com.azure.resourcemanager.eventgrid.models.PartnerAuthorization

public final class PartnerAuthorization extends Object
The partner authorization details.
  • Constructor Details

    • PartnerAuthorization

      public PartnerAuthorization()
  • Method Details

    • defaultMaximumExpirationTimeInDays

      public Integer defaultMaximumExpirationTimeInDays()
      Get the defaultMaximumExpirationTimeInDays property: Time used to validate the authorization expiration time for each authorized partner. If DefaultMaximumExpirationTimeInDays is not specified, the default is 7 days. Otherwise, allowed values are between 1 and 365 days.
      Returns:
      the defaultMaximumExpirationTimeInDays value.
    • withDefaultMaximumExpirationTimeInDays

      public PartnerAuthorization withDefaultMaximumExpirationTimeInDays(Integer defaultMaximumExpirationTimeInDays)
      Set the defaultMaximumExpirationTimeInDays property: Time used to validate the authorization expiration time for each authorized partner. If DefaultMaximumExpirationTimeInDays is not specified, the default is 7 days. Otherwise, allowed values are between 1 and 365 days.
      Parameters:
      defaultMaximumExpirationTimeInDays - the defaultMaximumExpirationTimeInDays value to set.
      Returns:
      the PartnerAuthorization object itself.
    • authorizedPartnersList

      public List<Partner> authorizedPartnersList()
      Get the authorizedPartnersList property: The list of authorized partners.
      Returns:
      the authorizedPartnersList value.
    • withAuthorizedPartnersList

      public PartnerAuthorization withAuthorizedPartnersList(List<Partner> authorizedPartnersList)
      Set the authorizedPartnersList property: The list of authorized partners.
      Parameters:
      authorizedPartnersList - the authorizedPartnersList value to set.
      Returns:
      the PartnerAuthorization object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.