Class LifetimeAction
- java.lang.Object
-
- com.azure.security.keyvault.certificates.models.LifetimeAction
-
public final class LifetimeAction extends Object
Represents a LifeTimeAction inCertificatePolicy
-
-
Constructor Summary
Constructors Constructor Description LifetimeAction(CertificatePolicyAction action)Creates a new LifetimeAction instance, with the providedCertificatePolicyAction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CertificatePolicyActiongetAction()Get the lifetime action.IntegergetDaysBeforeExpiry()Get the days before expiry.IntegergetLifetimePercentage()Get the lifetime percentage.LifetimeActionsetDaysBeforeExpiry(Integer daysBeforeExpiry)Set the days before expiry.LifetimeActionsetLifetimePercentage(Integer lifetimePercentage)Set the lifetime percentage.
-
-
-
Constructor Detail
-
LifetimeAction
public LifetimeAction(CertificatePolicyAction action)
Creates a new LifetimeAction instance, with the providedCertificatePolicyAction.- Parameters:
action- The action type of this LifetimeAction.
-
-
Method Detail
-
getLifetimePercentage
public Integer getLifetimePercentage()
Get the lifetime percentage.- Returns:
- the lifetime percentage
-
setLifetimePercentage
public LifetimeAction setLifetimePercentage(Integer lifetimePercentage)
Set the lifetime percentage.- Parameters:
lifetimePercentage- The lifetime percentage to set- Returns:
- the LifetimeAction object itself.
-
getDaysBeforeExpiry
public Integer getDaysBeforeExpiry()
Get the days before expiry.- Returns:
- the days before expiry
-
setDaysBeforeExpiry
public LifetimeAction setDaysBeforeExpiry(Integer daysBeforeExpiry)
Set the days before expiry.- Parameters:
daysBeforeExpiry- The days before expiry to set- Returns:
- the LifetimeAction object itself.
-
getAction
public CertificatePolicyAction getAction()
Get the lifetime action.- Returns:
- the lifetime action
-
-