PartnerAuthorization Class
- java.
lang. Object - com.
azure. resourcemanager. eventgrid. models. PartnerAuthorization
- com.
Implements
public final class PartnerAuthorization
implements JsonSerializable<PartnerAuthorization>
The partner authorization details.
Constructor Summary
| Constructor | Description |
|---|---|
| PartnerAuthorization() |
Creates an instance of Partner |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| List<Partner> |
authorizedPartnersList()
Get the authorized |
| Integer |
defaultMaximumExpirationTimeInDays()
Get the default |
|
static
Partner |
fromJson(JsonReader jsonReader)
Reads an instance of Partner |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Partner |
withAuthorizedPartnersList(List<Partner> authorizedPartnersList)
Set the authorized |
|
Partner |
withDefaultMaximumExpirationTimeInDays(Integer defaultMaximumExpirationTimeInDays)
Set the default |
Methods inherited from java.lang.Object
Constructor Details
PartnerAuthorization
public PartnerAuthorization()
Creates an instance of PartnerAuthorization class.
Method Details
authorizedPartnersList
public List<Partner> authorizedPartnersList()
Get the authorizedPartnersList property: The list of authorized partners.
Returns:
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:
fromJson
public static PartnerAuthorization fromJson(JsonReader jsonReader)
Reads an instance of PartnerAuthorization from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withAuthorizedPartnersList
public PartnerAuthorization withAuthorizedPartnersList(List<Partner> authorizedPartnersList)
Set the authorizedPartnersList property: The list of authorized partners.
Parameters:
Returns:
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:
Returns: