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

import com.pulumi.core.annotations.CustomType;
import com.pulumi.gcp.osconfig.outputs.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgRpmSource;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class OsPolicyAssignmentOsPolicyResourceGroupResourcePkgRpm {
    /**
     * @return Whether dependencies should also be installed. -
     * install when false: `rpm --upgrade --replacepkgs package.rpm` - install when
     * true: `yum -y install package.rpm` or `zypper -y install package.rpm`
     * 
     */
    private @Nullable Boolean pullDeps;
    /**
     * @return An rpm package. Structure is
     * documented below.
     * 
     */
    private OsPolicyAssignmentOsPolicyResourceGroupResourcePkgRpmSource source;

    private OsPolicyAssignmentOsPolicyResourceGroupResourcePkgRpm() {}
    /**
     * @return Whether dependencies should also be installed. -
     * install when false: `rpm --upgrade --replacepkgs package.rpm` - install when
     * true: `yum -y install package.rpm` or `zypper -y install package.rpm`
     * 
     */
    public Optional<Boolean> pullDeps() {
        return Optional.ofNullable(this.pullDeps);
    }
    /**
     * @return An rpm package. Structure is
     * documented below.
     * 
     */
    public OsPolicyAssignmentOsPolicyResourceGroupResourcePkgRpmSource source() {
        return this.source;
    }

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

    public static Builder builder(OsPolicyAssignmentOsPolicyResourceGroupResourcePkgRpm defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Boolean pullDeps;
        private OsPolicyAssignmentOsPolicyResourceGroupResourcePkgRpmSource source;
        public Builder() {}
        public Builder(OsPolicyAssignmentOsPolicyResourceGroupResourcePkgRpm defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.pullDeps = defaults.pullDeps;
    	      this.source = defaults.source;
        }

        @CustomType.Setter
        public Builder pullDeps(@Nullable Boolean pullDeps) {
            this.pullDeps = pullDeps;
            return this;
        }
        @CustomType.Setter
        public Builder source(OsPolicyAssignmentOsPolicyResourceGroupResourcePkgRpmSource source) {
            this.source = Objects.requireNonNull(source);
            return this;
        }
        public OsPolicyAssignmentOsPolicyResourceGroupResourcePkgRpm build() {
            final var o = new OsPolicyAssignmentOsPolicyResourceGroupResourcePkgRpm();
            o.pullDeps = pullDeps;
            o.source = source;
            return o;
        }
    }
}
