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

com.pulumi.alicloud.kms.inputs.KeyVersionState Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.kms.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class KeyVersionState extends com.pulumi.resources.ResourceArgs {

    public static final KeyVersionState Empty = new KeyVersionState();

    /**
     * The id of the master key (CMK).
     * 
     * > **NOTE:** The minimum interval for creating a Alikms key version is 7 days.
     * 
     */
    @Import(name="keyId")
    private @Nullable Output keyId;

    /**
     * @return The id of the master key (CMK).
     * 
     * > **NOTE:** The minimum interval for creating a Alikms key version is 7 days.
     * 
     */
    public Optional> keyId() {
        return Optional.ofNullable(this.keyId);
    }

    /**
     * The id of the Alikms key version.
     * 
     */
    @Import(name="keyVersionId")
    private @Nullable Output keyVersionId;

    /**
     * @return The id of the Alikms key version.
     * 
     */
    public Optional> keyVersionId() {
        return Optional.ofNullable(this.keyVersionId);
    }

    private KeyVersionState() {}

    private KeyVersionState(KeyVersionState $) {
        this.keyId = $.keyId;
        this.keyVersionId = $.keyVersionId;
    }

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

    public static final class Builder {
        private KeyVersionState $;

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

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

        /**
         * @param keyId The id of the master key (CMK).
         * 
         * > **NOTE:** The minimum interval for creating a Alikms key version is 7 days.
         * 
         * @return builder
         * 
         */
        public Builder keyId(@Nullable Output keyId) {
            $.keyId = keyId;
            return this;
        }

        /**
         * @param keyId The id of the master key (CMK).
         * 
         * > **NOTE:** The minimum interval for creating a Alikms key version is 7 days.
         * 
         * @return builder
         * 
         */
        public Builder keyId(String keyId) {
            return keyId(Output.of(keyId));
        }

        /**
         * @param keyVersionId The id of the Alikms key version.
         * 
         * @return builder
         * 
         */
        public Builder keyVersionId(@Nullable Output keyVersionId) {
            $.keyVersionId = keyVersionId;
            return this;
        }

        /**
         * @param keyVersionId The id of the Alikms key version.
         * 
         * @return builder
         * 
         */
        public Builder keyVersionId(String keyVersionId) {
            return keyVersionId(Output.of(keyVersionId));
        }

        public KeyVersionState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy