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

com.pulumi.googlenative.cloudkms.v1.inputs.GetCryptoKeyArgs 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.googlenative.cloudkms.v1.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 GetCryptoKeyArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetCryptoKeyArgs Empty = new GetCryptoKeyArgs();

    @Import(name="cryptoKeyId", required=true)
    private Output cryptoKeyId;

    public Output cryptoKeyId() {
        return this.cryptoKeyId;
    }

    @Import(name="keyRingId", required=true)
    private Output keyRingId;

    public Output keyRingId() {
        return this.keyRingId;
    }

    @Import(name="location", required=true)
    private Output location;

    public Output location() {
        return this.location;
    }

    @Import(name="project")
    private @Nullable Output project;

    public Optional> project() {
        return Optional.ofNullable(this.project);
    }

    private GetCryptoKeyArgs() {}

    private GetCryptoKeyArgs(GetCryptoKeyArgs $) {
        this.cryptoKeyId = $.cryptoKeyId;
        this.keyRingId = $.keyRingId;
        this.location = $.location;
        this.project = $.project;
    }

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

    public static final class Builder {
        private GetCryptoKeyArgs $;

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

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

        public Builder cryptoKeyId(Output cryptoKeyId) {
            $.cryptoKeyId = cryptoKeyId;
            return this;
        }

        public Builder cryptoKeyId(String cryptoKeyId) {
            return cryptoKeyId(Output.of(cryptoKeyId));
        }

        public Builder keyRingId(Output keyRingId) {
            $.keyRingId = keyRingId;
            return this;
        }

        public Builder keyRingId(String keyRingId) {
            return keyRingId(Output.of(keyRingId));
        }

        public Builder location(Output location) {
            $.location = location;
            return this;
        }

        public Builder location(String location) {
            return location(Output.of(location));
        }

        public Builder project(@Nullable Output project) {
            $.project = project;
            return this;
        }

        public Builder project(String project) {
            return project(Output.of(project));
        }

        public GetCryptoKeyArgs build() {
            $.cryptoKeyId = Objects.requireNonNull($.cryptoKeyId, "expected parameter 'cryptoKeyId' to be non-null");
            $.keyRingId = Objects.requireNonNull($.keyRingId, "expected parameter 'keyRingId' to be non-null");
            $.location = Objects.requireNonNull($.location, "expected parameter 'location' to be non-null");
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy