LifetimeAction Class
- java.
lang. Object - com.
azure. security. keyvault. certificates. models. LifetimeAction
- com.
Implements
public final class LifetimeAction
implements JsonSerializable<LifetimeAction>
Represents a LifeTimeAction in CertificatePolicy
Constructor Summary
Constructor | Description |
---|---|
LifetimeAction(CertificatePolicyAction action) |
Creates a new Lifetime |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Lifetime |
fromJson(JsonReader jsonReader)
Reads a JSON stream into a LifetimeAction. |
Certificate |
getAction()
Get the lifetime action. |
Integer |
getDaysBeforeExpiry()
Get the days before expiry. |
Integer |
getLifetimePercentage()
Get the lifetime percentage. |
Lifetime |
setDaysBeforeExpiry(Integer daysBeforeExpiry)
Set the days before expiry. |
Lifetime |
setLifetimePercentage(Integer lifetimePercentage)
Set the lifetime percentage. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
LifetimeAction
public LifetimeAction(CertificatePolicyAction action)
Creates a new LifetimeAction instance, with the provided CertificatePolicyAction.
Parameters:
Method Details
fromJson
public static LifetimeAction fromJson(JsonReader jsonReader)
Reads a JSON stream into a LifetimeAction.
Parameters:
Returns:
Throws:
getAction
public CertificatePolicyAction getAction()
Get the lifetime action.
Returns:
getDaysBeforeExpiry
public Integer getDaysBeforeExpiry()
Get the days before expiry.
Returns:
getLifetimePercentage
public Integer getLifetimePercentage()
Get the lifetime percentage.
Returns:
setDaysBeforeExpiry
public LifetimeAction setDaysBeforeExpiry(Integer daysBeforeExpiry)
Set the days before expiry.
Parameters:
Returns:
setLifetimePercentage
public LifetimeAction setLifetimePercentage(Integer lifetimePercentage)
Set the lifetime percentage.
Parameters:
Returns:
toJson
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for