// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azure.keyvault.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.util.Objects;

@CustomType
public final class GetCertificateCertificatePolicyLifetimeActionTrigger {
    /**
     * @return The number of days before the Certificate expires that the action associated with this Trigger should run.
     * 
     */
    private Integer daysBeforeExpiry;
    /**
     * @return The percentage at which during the Certificates Lifetime the action associated with this Trigger should run.
     * 
     */
    private Integer lifetimePercentage;

    private GetCertificateCertificatePolicyLifetimeActionTrigger() {}
    /**
     * @return The number of days before the Certificate expires that the action associated with this Trigger should run.
     * 
     */
    public Integer daysBeforeExpiry() {
        return this.daysBeforeExpiry;
    }
    /**
     * @return The percentage at which during the Certificates Lifetime the action associated with this Trigger should run.
     * 
     */
    public Integer lifetimePercentage() {
        return this.lifetimePercentage;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(GetCertificateCertificatePolicyLifetimeActionTrigger defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Integer daysBeforeExpiry;
        private Integer lifetimePercentage;
        public Builder() {}
        public Builder(GetCertificateCertificatePolicyLifetimeActionTrigger defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.daysBeforeExpiry = defaults.daysBeforeExpiry;
    	      this.lifetimePercentage = defaults.lifetimePercentage;
        }

        @CustomType.Setter
        public Builder daysBeforeExpiry(Integer daysBeforeExpiry) {
            this.daysBeforeExpiry = Objects.requireNonNull(daysBeforeExpiry);
            return this;
        }
        @CustomType.Setter
        public Builder lifetimePercentage(Integer lifetimePercentage) {
            this.lifetimePercentage = Objects.requireNonNull(lifetimePercentage);
            return this;
        }
        public GetCertificateCertificatePolicyLifetimeActionTrigger build() {
            final var o = new GetCertificateCertificatePolicyLifetimeActionTrigger();
            o.daysBeforeExpiry = daysBeforeExpiry;
            o.lifetimePercentage = lifetimePercentage;
            return o;
        }
    }
}
