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

import com.pulumi.core.annotations.CustomType;
import com.pulumi.gcp.container.outputs.GetClusterClusterAutoscalingAutoProvisioningDefaultManagementUpgradeOption;
import java.lang.Boolean;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetClusterClusterAutoscalingAutoProvisioningDefaultManagement {
    private Boolean autoRepair;
    private Boolean autoUpgrade;
    private List<GetClusterClusterAutoscalingAutoProvisioningDefaultManagementUpgradeOption> upgradeOptions;

    private GetClusterClusterAutoscalingAutoProvisioningDefaultManagement() {}
    public Boolean autoRepair() {
        return this.autoRepair;
    }
    public Boolean autoUpgrade() {
        return this.autoUpgrade;
    }
    public List<GetClusterClusterAutoscalingAutoProvisioningDefaultManagementUpgradeOption> upgradeOptions() {
        return this.upgradeOptions;
    }

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

    public static Builder builder(GetClusterClusterAutoscalingAutoProvisioningDefaultManagement defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Boolean autoRepair;
        private Boolean autoUpgrade;
        private List<GetClusterClusterAutoscalingAutoProvisioningDefaultManagementUpgradeOption> upgradeOptions;
        public Builder() {}
        public Builder(GetClusterClusterAutoscalingAutoProvisioningDefaultManagement defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.autoRepair = defaults.autoRepair;
    	      this.autoUpgrade = defaults.autoUpgrade;
    	      this.upgradeOptions = defaults.upgradeOptions;
        }

        @CustomType.Setter
        public Builder autoRepair(Boolean autoRepair) {
            this.autoRepair = Objects.requireNonNull(autoRepair);
            return this;
        }
        @CustomType.Setter
        public Builder autoUpgrade(Boolean autoUpgrade) {
            this.autoUpgrade = Objects.requireNonNull(autoUpgrade);
            return this;
        }
        @CustomType.Setter
        public Builder upgradeOptions(List<GetClusterClusterAutoscalingAutoProvisioningDefaultManagementUpgradeOption> upgradeOptions) {
            this.upgradeOptions = Objects.requireNonNull(upgradeOptions);
            return this;
        }
        public Builder upgradeOptions(GetClusterClusterAutoscalingAutoProvisioningDefaultManagementUpgradeOption... upgradeOptions) {
            return upgradeOptions(List.of(upgradeOptions));
        }
        public GetClusterClusterAutoscalingAutoProvisioningDefaultManagement build() {
            final var o = new GetClusterClusterAutoscalingAutoProvisioningDefaultManagement();
            o.autoRepair = autoRepair;
            o.autoUpgrade = autoUpgrade;
            o.upgradeOptions = upgradeOptions;
            return o;
        }
    }
}
