Class Partner
java.lang.Object
com.azure.resourcemanager.eventgrid.models.Partner
Information about the partner.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the authorizationExpirationTimeInUtc property: Expiration time of the partner authorization.Get the partnerName property: The partner name.Get the partnerRegistrationImmutableId property: The immutableId of the corresponding partner registration.void
validate()
Validates the instance.withAuthorizationExpirationTimeInUtc
(OffsetDateTime authorizationExpirationTimeInUtc) Set the authorizationExpirationTimeInUtc property: Expiration time of the partner authorization.withPartnerName
(String partnerName) Set the partnerName property: The partner name.withPartnerRegistrationImmutableId
(UUID partnerRegistrationImmutableId) Set the partnerRegistrationImmutableId property: The immutableId of the corresponding partner registration.
-
Constructor Details
-
Partner
public Partner()
-
-
Method Details
-
partnerRegistrationImmutableId
Get the partnerRegistrationImmutableId property: The immutableId of the corresponding partner registration.- Returns:
- the partnerRegistrationImmutableId value.
-
withPartnerRegistrationImmutableId
Set the partnerRegistrationImmutableId property: The immutableId of the corresponding partner registration.- Parameters:
partnerRegistrationImmutableId
- the partnerRegistrationImmutableId value to set.- Returns:
- the Partner object itself.
-
partnerName
Get the partnerName property: The partner name.- Returns:
- the partnerName value.
-
withPartnerName
Set the partnerName property: The partner name.- Parameters:
partnerName
- the partnerName value to set.- Returns:
- the Partner object itself.
-
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.
-
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-