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

com.pulumi.azurenative.keyvault.inputs.KeyAttributesArgs Maven / Gradle / Ivy

There is a newer version: 2.82.0
Show newest version
// *** 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.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import java.lang.Boolean;
import java.lang.Double;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The object attributes managed by the Azure Key Vault service.
 * 
 */
public final class KeyAttributesArgs extends com.pulumi.resources.ResourceArgs {

    public static final KeyAttributesArgs Empty = new KeyAttributesArgs();

    /**
     * Determines whether or not the object is enabled.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return Determines whether or not the object is enabled.
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * Expiry date in seconds since 1970-01-01T00:00:00Z.
     * 
     */
    @Import(name="expires")
    private @Nullable Output expires;

    /**
     * @return Expiry date in seconds since 1970-01-01T00:00:00Z.
     * 
     */
    public Optional> expires() {
        return Optional.ofNullable(this.expires);
    }

    /**
     * Indicates if the private key can be exported.
     * 
     */
    @Import(name="exportable")
    private @Nullable Output exportable;

    /**
     * @return Indicates if the private key can be exported.
     * 
     */
    public Optional> exportable() {
        return Optional.ofNullable(this.exportable);
    }

    /**
     * Not before date in seconds since 1970-01-01T00:00:00Z.
     * 
     */
    @Import(name="notBefore")
    private @Nullable Output notBefore;

    /**
     * @return Not before date in seconds since 1970-01-01T00:00:00Z.
     * 
     */
    public Optional> notBefore() {
        return Optional.ofNullable(this.notBefore);
    }

    private KeyAttributesArgs() {}

    private KeyAttributesArgs(KeyAttributesArgs $) {
        this.enabled = $.enabled;
        this.expires = $.expires;
        this.exportable = $.exportable;
        this.notBefore = $.notBefore;
    }

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

    public static final class Builder {
        private KeyAttributesArgs $;

        public Builder() {
            $ = new KeyAttributesArgs();
        }

        public Builder(KeyAttributesArgs defaults) {
            $ = new KeyAttributesArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param enabled Determines whether or not the object is enabled.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Determines whether or not the object is enabled.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param expires Expiry date in seconds since 1970-01-01T00:00:00Z.
         * 
         * @return builder
         * 
         */
        public Builder expires(@Nullable Output expires) {
            $.expires = expires;
            return this;
        }

        /**
         * @param expires Expiry date in seconds since 1970-01-01T00:00:00Z.
         * 
         * @return builder
         * 
         */
        public Builder expires(Double expires) {
            return expires(Output.of(expires));
        }

        /**
         * @param exportable Indicates if the private key can be exported.
         * 
         * @return builder
         * 
         */
        public Builder exportable(@Nullable Output exportable) {
            $.exportable = exportable;
            return this;
        }

        /**
         * @param exportable Indicates if the private key can be exported.
         * 
         * @return builder
         * 
         */
        public Builder exportable(Boolean exportable) {
            return exportable(Output.of(exportable));
        }

        /**
         * @param notBefore Not before date in seconds since 1970-01-01T00:00:00Z.
         * 
         * @return builder
         * 
         */
        public Builder notBefore(@Nullable Output notBefore) {
            $.notBefore = notBefore;
            return this;
        }

        /**
         * @param notBefore Not before date in seconds since 1970-01-01T00:00:00Z.
         * 
         * @return builder
         * 
         */
        public Builder notBefore(Double notBefore) {
            return notBefore(Output.of(notBefore));
        }

        public KeyAttributesArgs build() {
            $.exportable = Codegen.booleanProp("exportable").output().arg($.exportable).def(false).getNullable();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy