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

import com.pulumi.aws.sagemaker.outputs.FeatureGroupOnlineStoreConfigSecurityConfig;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class FeatureGroupOnlineStoreConfig {
    /**
     * @return Set to `true` to disable the automatic creation of an AWS Glue table when configuring an OfflineStore.
     * 
     */
    private @Nullable Boolean enableOnlineStore;
    /**
     * @return Security config for at-rest encryption of your OnlineStore. See Security Config Below.
     * 
     */
    private @Nullable FeatureGroupOnlineStoreConfigSecurityConfig securityConfig;

    private FeatureGroupOnlineStoreConfig() {}
    /**
     * @return Set to `true` to disable the automatic creation of an AWS Glue table when configuring an OfflineStore.
     * 
     */
    public Optional<Boolean> enableOnlineStore() {
        return Optional.ofNullable(this.enableOnlineStore);
    }
    /**
     * @return Security config for at-rest encryption of your OnlineStore. See Security Config Below.
     * 
     */
    public Optional<FeatureGroupOnlineStoreConfigSecurityConfig> securityConfig() {
        return Optional.ofNullable(this.securityConfig);
    }

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

    public static Builder builder(FeatureGroupOnlineStoreConfig defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Boolean enableOnlineStore;
        private @Nullable FeatureGroupOnlineStoreConfigSecurityConfig securityConfig;
        public Builder() {}
        public Builder(FeatureGroupOnlineStoreConfig defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.enableOnlineStore = defaults.enableOnlineStore;
    	      this.securityConfig = defaults.securityConfig;
        }

        @CustomType.Setter
        public Builder enableOnlineStore(@Nullable Boolean enableOnlineStore) {
            this.enableOnlineStore = enableOnlineStore;
            return this;
        }
        @CustomType.Setter
        public Builder securityConfig(@Nullable FeatureGroupOnlineStoreConfigSecurityConfig securityConfig) {
            this.securityConfig = securityConfig;
            return this;
        }
        public FeatureGroupOnlineStoreConfig build() {
            final var o = new FeatureGroupOnlineStoreConfig();
            o.enableOnlineStore = enableOnlineStore;
            o.securityConfig = securityConfig;
            return o;
        }
    }
}
