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

import com.pulumi.azure.automation.outputs.SoftwareUpdateConfigurationTargetAzureQuery;
import com.pulumi.azure.automation.outputs.SoftwareUpdateConfigurationTargetNonAzureQuery;
import com.pulumi.core.annotations.CustomType;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class SoftwareUpdateConfigurationTarget {
    /**
     * @return One or more `azure_query` blocks as defined above.
     * 
     */
    private @Nullable List<SoftwareUpdateConfigurationTargetAzureQuery> azureQueries;
    /**
     * @return One or more `non_azure_query` blocks as defined above.
     * 
     */
    private @Nullable List<SoftwareUpdateConfigurationTargetNonAzureQuery> nonAzureQueries;

    private SoftwareUpdateConfigurationTarget() {}
    /**
     * @return One or more `azure_query` blocks as defined above.
     * 
     */
    public List<SoftwareUpdateConfigurationTargetAzureQuery> azureQueries() {
        return this.azureQueries == null ? List.of() : this.azureQueries;
    }
    /**
     * @return One or more `non_azure_query` blocks as defined above.
     * 
     */
    public List<SoftwareUpdateConfigurationTargetNonAzureQuery> nonAzureQueries() {
        return this.nonAzureQueries == null ? List.of() : this.nonAzureQueries;
    }

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

    public static Builder builder(SoftwareUpdateConfigurationTarget defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List<SoftwareUpdateConfigurationTargetAzureQuery> azureQueries;
        private @Nullable List<SoftwareUpdateConfigurationTargetNonAzureQuery> nonAzureQueries;
        public Builder() {}
        public Builder(SoftwareUpdateConfigurationTarget defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.azureQueries = defaults.azureQueries;
    	      this.nonAzureQueries = defaults.nonAzureQueries;
        }

        @CustomType.Setter
        public Builder azureQueries(@Nullable List<SoftwareUpdateConfigurationTargetAzureQuery> azureQueries) {
            this.azureQueries = azureQueries;
            return this;
        }
        public Builder azureQueries(SoftwareUpdateConfigurationTargetAzureQuery... azureQueries) {
            return azureQueries(List.of(azureQueries));
        }
        @CustomType.Setter
        public Builder nonAzureQueries(@Nullable List<SoftwareUpdateConfigurationTargetNonAzureQuery> nonAzureQueries) {
            this.nonAzureQueries = nonAzureQueries;
            return this;
        }
        public Builder nonAzureQueries(SoftwareUpdateConfigurationTargetNonAzureQuery... nonAzureQueries) {
            return nonAzureQueries(List.of(nonAzureQueries));
        }
        public SoftwareUpdateConfigurationTarget build() {
            final var o = new SoftwareUpdateConfigurationTarget();
            o.azureQueries = azureQueries;
            o.nonAzureQueries = nonAzureQueries;
            return o;
        }
    }
}
