// *** 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.gcp.kms.inputs;

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


public final class GetKMSCryptoKeyVersionPlainArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetKMSCryptoKeyVersionPlainArgs Empty = new GetKMSCryptoKeyVersionPlainArgs();

    /**
     * The `id` of the Google Cloud Platform CryptoKey to which the key version belongs. This is also the `id` field of the
     * `gcp.kms.CryptoKey` resource/datasource.
     * 
     */
    @Import(name="cryptoKey", required=true)
    private String cryptoKey;

    /**
     * @return The `id` of the Google Cloud Platform CryptoKey to which the key version belongs. This is also the `id` field of the
     * `gcp.kms.CryptoKey` resource/datasource.
     * 
     */
    public String cryptoKey() {
        return this.cryptoKey;
    }

    /**
     * The version number for this CryptoKeyVersion. Defaults to `1`.
     * 
     */
    @Import(name="version")
    private @Nullable Integer version;

    /**
     * @return The version number for this CryptoKeyVersion. Defaults to `1`.
     * 
     */
    public Optional<Integer> version() {
        return Optional.ofNullable(this.version);
    }

    private GetKMSCryptoKeyVersionPlainArgs() {}

    private GetKMSCryptoKeyVersionPlainArgs(GetKMSCryptoKeyVersionPlainArgs $) {
        this.cryptoKey = $.cryptoKey;
        this.version = $.version;
    }

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

    public static final class Builder {
        private GetKMSCryptoKeyVersionPlainArgs $;

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

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

        /**
         * @param cryptoKey The `id` of the Google Cloud Platform CryptoKey to which the key version belongs. This is also the `id` field of the
         * `gcp.kms.CryptoKey` resource/datasource.
         * 
         * @return builder
         * 
         */
        public Builder cryptoKey(String cryptoKey) {
            $.cryptoKey = cryptoKey;
            return this;
        }

        /**
         * @param version The version number for this CryptoKeyVersion. Defaults to `1`.
         * 
         * @return builder
         * 
         */
        public Builder version(@Nullable Integer version) {
            $.version = version;
            return this;
        }

        public GetKMSCryptoKeyVersionPlainArgs build() {
            $.cryptoKey = Objects.requireNonNull($.cryptoKey, "expected parameter 'cryptoKey' to be non-null");
            return $;
        }
    }

}
