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

import com.pulumi.aws.guardduty.outputs.DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindings;
import com.pulumi.core.annotations.CustomType;
import java.util.Objects;

@CustomType
public final class DetectorDatasourcesMalwareProtection {
    /**
     * @return Configure whether [Malware Protection](https://docs.aws.amazon.com/guardduty/latest/ug/malware-protection.html) is enabled as data source for EC2 instances with findings for the detector.
     * See Scan EC2 instance with findings below for more details.
     * 
     */
    private DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindings scanEc2InstanceWithFindings;

    private DetectorDatasourcesMalwareProtection() {}
    /**
     * @return Configure whether [Malware Protection](https://docs.aws.amazon.com/guardduty/latest/ug/malware-protection.html) is enabled as data source for EC2 instances with findings for the detector.
     * See Scan EC2 instance with findings below for more details.
     * 
     */
    public DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindings scanEc2InstanceWithFindings() {
        return this.scanEc2InstanceWithFindings;
    }

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

    public static Builder builder(DetectorDatasourcesMalwareProtection defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindings scanEc2InstanceWithFindings;
        public Builder() {}
        public Builder(DetectorDatasourcesMalwareProtection defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.scanEc2InstanceWithFindings = defaults.scanEc2InstanceWithFindings;
        }

        @CustomType.Setter
        public Builder scanEc2InstanceWithFindings(DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindings scanEc2InstanceWithFindings) {
            this.scanEc2InstanceWithFindings = Objects.requireNonNull(scanEc2InstanceWithFindings);
            return this;
        }
        public DetectorDatasourcesMalwareProtection build() {
            final var o = new DetectorDatasourcesMalwareProtection();
            o.scanEc2InstanceWithFindings = scanEc2InstanceWithFindings;
            return o;
        }
    }
}
