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

import com.pulumi.core.annotations.CustomType;
import com.pulumi.gcp.cloudrun.outputs.ServiceTemplateSpecContainerEnvValueFromSecretKeyRef;
import java.util.Objects;

@CustomType
public final class ServiceTemplateSpecContainerEnvValueFrom {
    /**
     * @return Selects a key (version) of a secret in Secret Manager.
     * Structure is documented below.
     * 
     */
    private ServiceTemplateSpecContainerEnvValueFromSecretKeyRef secretKeyRef;

    private ServiceTemplateSpecContainerEnvValueFrom() {}
    /**
     * @return Selects a key (version) of a secret in Secret Manager.
     * Structure is documented below.
     * 
     */
    public ServiceTemplateSpecContainerEnvValueFromSecretKeyRef secretKeyRef() {
        return this.secretKeyRef;
    }

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

    public static Builder builder(ServiceTemplateSpecContainerEnvValueFrom defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private ServiceTemplateSpecContainerEnvValueFromSecretKeyRef secretKeyRef;
        public Builder() {}
        public Builder(ServiceTemplateSpecContainerEnvValueFrom defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.secretKeyRef = defaults.secretKeyRef;
        }

        @CustomType.Setter
        public Builder secretKeyRef(ServiceTemplateSpecContainerEnvValueFromSecretKeyRef secretKeyRef) {
            this.secretKeyRef = Objects.requireNonNull(secretKeyRef);
            return this;
        }
        public ServiceTemplateSpecContainerEnvValueFrom build() {
            final var o = new ServiceTemplateSpecContainerEnvValueFrom();
            o.secretKeyRef = secretKeyRef;
            return o;
        }
    }
}
