次の方法で共有


PartnerAuthorization Class

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

Implements

public final class PartnerAuthorization
implements JsonSerializable<PartnerAuthorization>

The partner authorization details.

Constructor Summary

Constructor Description
PartnerAuthorization()

Creates an instance of PartnerAuthorization class.

Method Summary

Modifier and Type Method and Description
List<Partner> authorizedPartnersList()

Get the authorizedPartnersList property: The list of authorized partners.

Integer defaultMaximumExpirationTimeInDays()

Get the defaultMaximumExpirationTimeInDays property: Time used to validate the authorization expiration time for each authorized partner.

static PartnerAuthorization fromJson(JsonReader jsonReader)

Reads an instance of PartnerAuthorization from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PartnerAuthorization withAuthorizedPartnersList(List<Partner> authorizedPartnersList)

Set the authorizedPartnersList property: The list of authorized partners.

PartnerAuthorization withDefaultMaximumExpirationTimeInDays(Integer defaultMaximumExpirationTimeInDays)

Set the defaultMaximumExpirationTimeInDays property: Time used to validate the authorization expiration time for each authorized partner.

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:

the authorizedPartnersList value.

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.

fromJson

public static PartnerAuthorization fromJson(JsonReader jsonReader)

Reads an instance of PartnerAuthorization from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PartnerAuthorization 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 PartnerAuthorization.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

Applies to