Share via


Partner Class

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

Implements

public final class Partner
implements JsonSerializable<Partner>

Information about the partner.

Constructor Summary

Constructor Description
Partner()

Creates an instance of Partner class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime authorizationExpirationTimeInUtc()

Get the authorizationExpirationTimeInUtc property: Expiration time of the partner authorization.

static Partner fromJson(JsonReader jsonReader)

Reads an instance of Partner from the JsonReader.

String partnerName()

Get the partnerName property: The partner name.

UUID partnerRegistrationImmutableId()

Get the partnerRegistrationImmutableId property: The immutableId of the corresponding partner registration.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Partner withAuthorizationExpirationTimeInUtc(OffsetDateTime authorizationExpirationTimeInUtc)

Set the authorizationExpirationTimeInUtc property: Expiration time of the partner authorization.

Partner withPartnerName(String partnerName)

Set the partnerName property: The partner name.

Partner withPartnerRegistrationImmutableId(UUID partnerRegistrationImmutableId)

Set the partnerRegistrationImmutableId property: The immutableId of the corresponding partner registration.

Methods inherited from java.lang.Object

Constructor Details

Partner

public Partner()

Creates an instance of Partner class.

Method Details

authorizationExpirationTimeInUtc

public OffsetDateTime authorizationExpirationTimeInUtc()

Get the authorizationExpirationTimeInUtc property: Expiration time of the partner authorization. If this timer expires, any request from this partner to create, update or delete resources in subscriber's context will fail. If specified, the allowed values are between 1 to the value of defaultMaximumExpirationTimeInDays specified in PartnerConfiguration. If not specified, the default value will be the value of defaultMaximumExpirationTimeInDays specified in PartnerConfiguration or 7 if this value is not specified.

Returns:

the authorizationExpirationTimeInUtc value.

fromJson

public static Partner fromJson(JsonReader jsonReader)

Reads an instance of Partner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

partnerName

public String partnerName()

Get the partnerName property: The partner name.

Returns:

the partnerName value.

partnerRegistrationImmutableId

public UUID partnerRegistrationImmutableId()

Get the partnerRegistrationImmutableId property: The immutableId of the corresponding partner registration.

Returns:

the partnerRegistrationImmutableId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAuthorizationExpirationTimeInUtc

public Partner withAuthorizationExpirationTimeInUtc(OffsetDateTime authorizationExpirationTimeInUtc)

Set the authorizationExpirationTimeInUtc property: Expiration time of the partner authorization. If this timer expires, any request from this partner to create, update or delete resources in subscriber's context will fail. If specified, the allowed values are between 1 to the value of defaultMaximumExpirationTimeInDays specified in PartnerConfiguration. If not specified, the default value will be the value of defaultMaximumExpirationTimeInDays specified in PartnerConfiguration or 7 if this value is not specified.

Parameters:

authorizationExpirationTimeInUtc - the authorizationExpirationTimeInUtc value to set.

Returns:

the Partner object itself.

withPartnerName

public Partner withPartnerName(String partnerName)

Set the partnerName property: The partner name.

Parameters:

partnerName - the partnerName value to set.

Returns:

the Partner object itself.

withPartnerRegistrationImmutableId

public Partner withPartnerRegistrationImmutableId(UUID partnerRegistrationImmutableId)

Set the partnerRegistrationImmutableId property: The immutableId of the corresponding partner registration.

Parameters:

partnerRegistrationImmutableId - the partnerRegistrationImmutableId value to set.

Returns:

the Partner object itself.

Applies to