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

import com.pulumi.core.annotations.CustomType;
import com.pulumi.gcp.gkehub.outputs.FeatureMembershipConfigmanagementConfigSyncGit;
import com.pulumi.gcp.gkehub.outputs.FeatureMembershipConfigmanagementConfigSyncOci;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class FeatureMembershipConfigmanagementConfigSync {
    /**
     * @return (Optional) Structure is documented below.
     * 
     */
    private @Nullable FeatureMembershipConfigmanagementConfigSyncGit git;
    /**
     * @return (Optional) Supported from ACM versions 1.12.0 onwards. Structure is documented below.
     * 
     * Use either `git` or `oci` config option.
     * 
     */
    private @Nullable FeatureMembershipConfigmanagementConfigSyncOci oci;
    /**
     * @return Supported from ACM versions 1.10.0 onwards. Set to true to enable the Config Sync admission webhook to prevent drifts. If set to &#34;false&#34;, disables the Config Sync admission webhook and does not prevent drifts.
     * 
     */
    private @Nullable Boolean preventDrift;
    /**
     * @return Specifies whether the Config Sync Repo is in &#34;hierarchical&#34; or &#34;unstructured&#34; mode.
     * 
     */
    private @Nullable String sourceFormat;

    private FeatureMembershipConfigmanagementConfigSync() {}
    /**
     * @return (Optional) Structure is documented below.
     * 
     */
    public Optional<FeatureMembershipConfigmanagementConfigSyncGit> git() {
        return Optional.ofNullable(this.git);
    }
    /**
     * @return (Optional) Supported from ACM versions 1.12.0 onwards. Structure is documented below.
     * 
     * Use either `git` or `oci` config option.
     * 
     */
    public Optional<FeatureMembershipConfigmanagementConfigSyncOci> oci() {
        return Optional.ofNullable(this.oci);
    }
    /**
     * @return Supported from ACM versions 1.10.0 onwards. Set to true to enable the Config Sync admission webhook to prevent drifts. If set to &#34;false&#34;, disables the Config Sync admission webhook and does not prevent drifts.
     * 
     */
    public Optional<Boolean> preventDrift() {
        return Optional.ofNullable(this.preventDrift);
    }
    /**
     * @return Specifies whether the Config Sync Repo is in &#34;hierarchical&#34; or &#34;unstructured&#34; mode.
     * 
     */
    public Optional<String> sourceFormat() {
        return Optional.ofNullable(this.sourceFormat);
    }

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

    public static Builder builder(FeatureMembershipConfigmanagementConfigSync defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable FeatureMembershipConfigmanagementConfigSyncGit git;
        private @Nullable FeatureMembershipConfigmanagementConfigSyncOci oci;
        private @Nullable Boolean preventDrift;
        private @Nullable String sourceFormat;
        public Builder() {}
        public Builder(FeatureMembershipConfigmanagementConfigSync defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.git = defaults.git;
    	      this.oci = defaults.oci;
    	      this.preventDrift = defaults.preventDrift;
    	      this.sourceFormat = defaults.sourceFormat;
        }

        @CustomType.Setter
        public Builder git(@Nullable FeatureMembershipConfigmanagementConfigSyncGit git) {
            this.git = git;
            return this;
        }
        @CustomType.Setter
        public Builder oci(@Nullable FeatureMembershipConfigmanagementConfigSyncOci oci) {
            this.oci = oci;
            return this;
        }
        @CustomType.Setter
        public Builder preventDrift(@Nullable Boolean preventDrift) {
            this.preventDrift = preventDrift;
            return this;
        }
        @CustomType.Setter
        public Builder sourceFormat(@Nullable String sourceFormat) {
            this.sourceFormat = sourceFormat;
            return this;
        }
        public FeatureMembershipConfigmanagementConfigSync build() {
            final var o = new FeatureMembershipConfigmanagementConfigSync();
            o.git = git;
            o.oci = oci;
            o.preventDrift = preventDrift;
            o.sourceFormat = sourceFormat;
            return o;
        }
    }
}
