All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.keyvault.outputs.KeyRotationPolicyAttributesResponse Maven / Gradle / Ivy

// *** 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.azurenative.keyvault.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class KeyRotationPolicyAttributesResponse {
    /**
     * @return Creation time in seconds since 1970-01-01T00:00:00Z.
     * 
     */
    private Double created;
    /**
     * @return The expiration time for the new key version. It should be in ISO8601 format. Eg: 'P90D', 'P1Y'.
     * 
     */
    private @Nullable String expiryTime;
    /**
     * @return Last updated time in seconds since 1970-01-01T00:00:00Z.
     * 
     */
    private Double updated;

    private KeyRotationPolicyAttributesResponse() {}
    /**
     * @return Creation time in seconds since 1970-01-01T00:00:00Z.
     * 
     */
    public Double created() {
        return this.created;
    }
    /**
     * @return The expiration time for the new key version. It should be in ISO8601 format. Eg: 'P90D', 'P1Y'.
     * 
     */
    public Optional expiryTime() {
        return Optional.ofNullable(this.expiryTime);
    }
    /**
     * @return Last updated time in seconds since 1970-01-01T00:00:00Z.
     * 
     */
    public Double updated() {
        return this.updated;
    }

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

    public static Builder builder(KeyRotationPolicyAttributesResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Double created;
        private @Nullable String expiryTime;
        private Double updated;
        public Builder() {}
        public Builder(KeyRotationPolicyAttributesResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.created = defaults.created;
    	      this.expiryTime = defaults.expiryTime;
    	      this.updated = defaults.updated;
        }

        @CustomType.Setter
        public Builder created(Double created) {
            if (created == null) {
              throw new MissingRequiredPropertyException("KeyRotationPolicyAttributesResponse", "created");
            }
            this.created = created;
            return this;
        }
        @CustomType.Setter
        public Builder expiryTime(@Nullable String expiryTime) {

            this.expiryTime = expiryTime;
            return this;
        }
        @CustomType.Setter
        public Builder updated(Double updated) {
            if (updated == null) {
              throw new MissingRequiredPropertyException("KeyRotationPolicyAttributesResponse", "updated");
            }
            this.updated = updated;
            return this;
        }
        public KeyRotationPolicyAttributesResponse build() {
            final var _resultValue = new KeyRotationPolicyAttributesResponse();
            _resultValue.created = created;
            _resultValue.expiryTime = expiryTime;
            _resultValue.updated = updated;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy