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

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

@CustomType
public final class LabSecurity {
    /**
     * @return Is open access enabled to allow any user or only specified users to register to a Lab Service Lab?
     * 
     */
    private Boolean openAccessEnabled;
    /**
     * @return The registration code for the Lab Service Lab.
     * 
     */
    private @Nullable String registrationCode;

    private LabSecurity() {}
    /**
     * @return Is open access enabled to allow any user or only specified users to register to a Lab Service Lab?
     * 
     */
    public Boolean openAccessEnabled() {
        return this.openAccessEnabled;
    }
    /**
     * @return The registration code for the Lab Service Lab.
     * 
     */
    public Optional<String> registrationCode() {
        return Optional.ofNullable(this.registrationCode);
    }

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

    public static Builder builder(LabSecurity defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Boolean openAccessEnabled;
        private @Nullable String registrationCode;
        public Builder() {}
        public Builder(LabSecurity defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.openAccessEnabled = defaults.openAccessEnabled;
    	      this.registrationCode = defaults.registrationCode;
        }

        @CustomType.Setter
        public Builder openAccessEnabled(Boolean openAccessEnabled) {
            this.openAccessEnabled = Objects.requireNonNull(openAccessEnabled);
            return this;
        }
        @CustomType.Setter
        public Builder registrationCode(@Nullable String registrationCode) {
            this.registrationCode = registrationCode;
            return this;
        }
        public LabSecurity build() {
            final var o = new LabSecurity();
            o.openAccessEnabled = openAccessEnabled;
            o.registrationCode = registrationCode;
            return o;
        }
    }
}
