Class LifetimeAction

java.lang.Object
com.azure.security.keyvault.certificates.models.LifetimeAction
All Implemented Interfaces:
com.azure.json.JsonSerializable<LifetimeAction>

public final class LifetimeAction extends Object implements com.azure.json.JsonSerializable<LifetimeAction>
Represents a LifeTimeAction in CertificatePolicy
  • Constructor Details

  • Method Details

    • 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
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<LifetimeAction>
      Throws:
      IOException
    • fromJson

      public static LifetimeAction fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads a JSON stream into a LifetimeAction.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      The LifetimeAction that the JSON stream represented, may return null.
      Throws:
      IOException - If a LifetimeAction fails to be read from the jsonReader.