Partner Class
- java.
lang. Object - com.
azure. resourcemanager. eventgrid. models. Partner
- com.
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 |
|---|---|
|
Offset |
authorizationExpirationTimeInUtc()
Get the authorization |
| static Partner |
fromJson(JsonReader jsonReader)
Reads an instance of Partner from the Json |
| String |
partnerName()
Get the partner |
| UUID |
partnerRegistrationImmutableId()
Get the partner |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
| Partner |
withAuthorizationExpirationTimeInUtc(OffsetDateTime authorizationExpirationTimeInUtc)
Set the authorization |
| Partner |
withPartnerName(String partnerName)
Set the partner |
| Partner |
withPartnerRegistrationImmutableId(UUID partnerRegistrationImmutableId)
Set the partner |
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:
fromJson
public static Partner fromJson(JsonReader jsonReader)
Reads an instance of Partner from the JsonReader.
Parameters:
Returns:
Throws:
partnerName
public String partnerName()
Get the partnerName property: The partner name.
Returns:
partnerRegistrationImmutableId
public UUID partnerRegistrationImmutableId()
Get the partnerRegistrationImmutableId property: The immutableId of the corresponding partner registration.
Returns:
toJson
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:
Returns:
withPartnerName
public Partner withPartnerName(String partnerName)
Set the partnerName property: The partner name.
Parameters:
Returns:
withPartnerRegistrationImmutableId
public Partner withPartnerRegistrationImmutableId(UUID partnerRegistrationImmutableId)
Set the partnerRegistrationImmutableId property: The immutableId of the corresponding partner registration.
Parameters:
Returns: