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 CertificatePolicyAction
getAction()
Get the lifetime action.Integer
getDaysBeforeExpiry()
Get the days before expiry.Integer
getLifetimePercentage()
Get the lifetime percentage.LifetimeAction
setDaysBeforeExpiry(Integer daysBeforeExpiry)
Set the days before expiry.LifetimeAction
setLifetimePercentage(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
-
-