// *** 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.compute.inputs;

import com.pulumi.azure.compute.inputs.ScaleSetPacketCaptureFilterArgs;
import com.pulumi.azure.compute.inputs.ScaleSetPacketCaptureMachineScopeArgs;
import com.pulumi.azure.compute.inputs.ScaleSetPacketCaptureStorageLocationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class ScaleSetPacketCaptureState extends com.pulumi.resources.ResourceArgs {

    public static final ScaleSetPacketCaptureState Empty = new ScaleSetPacketCaptureState();

    /**
     * One or more `filter` blocks as defined below. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="filters")
    private @Nullable Output<List<ScaleSetPacketCaptureFilterArgs>> filters;

    /**
     * @return One or more `filter` blocks as defined below. Changing this forces a new resource to be created.
     * 
     */
    public Optional<Output<List<ScaleSetPacketCaptureFilterArgs>>> filters() {
        return Optional.ofNullable(this.filters);
    }

    /**
     * A `machine_scope` block as defined below. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="machineScope")
    private @Nullable Output<ScaleSetPacketCaptureMachineScopeArgs> machineScope;

    /**
     * @return A `machine_scope` block as defined below. Changing this forces a new resource to be created.
     * 
     */
    public Optional<Output<ScaleSetPacketCaptureMachineScopeArgs>> machineScope() {
        return Optional.ofNullable(this.machineScope);
    }

    /**
     * The number of bytes captured per packet. The remaining bytes are truncated. Defaults to `0` (Entire Packet Captured). Changing this forces a new resource to be created.
     * 
     */
    @Import(name="maximumBytesPerPacket")
    private @Nullable Output<Integer> maximumBytesPerPacket;

    /**
     * @return The number of bytes captured per packet. The remaining bytes are truncated. Defaults to `0` (Entire Packet Captured). Changing this forces a new resource to be created.
     * 
     */
    public Optional<Output<Integer>> maximumBytesPerPacket() {
        return Optional.ofNullable(this.maximumBytesPerPacket);
    }

    /**
     * Maximum size of the capture in Bytes. Defaults to `1073741824` (1GB). Changing this forces a new resource to be created.
     * 
     */
    @Import(name="maximumBytesPerSession")
    private @Nullable Output<Integer> maximumBytesPerSession;

    /**
     * @return Maximum size of the capture in Bytes. Defaults to `1073741824` (1GB). Changing this forces a new resource to be created.
     * 
     */
    public Optional<Output<Integer>> maximumBytesPerSession() {
        return Optional.ofNullable(this.maximumBytesPerSession);
    }

    /**
     * The maximum duration of the capture session in seconds. Defaults to `18000` (5 hours). Changing this forces a new resource to be created.
     * 
     */
    @Import(name="maximumCaptureDurationInSeconds")
    private @Nullable Output<Integer> maximumCaptureDurationInSeconds;

    /**
     * @return The maximum duration of the capture session in seconds. Defaults to `18000` (5 hours). Changing this forces a new resource to be created.
     * 
     */
    public Optional<Output<Integer>> maximumCaptureDurationInSeconds() {
        return Optional.ofNullable(this.maximumCaptureDurationInSeconds);
    }

    /**
     * The name to use for this Network Packet Capture. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output<String> name;

    /**
     * @return The name to use for this Network Packet Capture. Changing this forces a new resource to be created.
     * 
     */
    public Optional<Output<String>> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The resource ID of the Network Watcher. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="networkWatcherId")
    private @Nullable Output<String> networkWatcherId;

    /**
     * @return The resource ID of the Network Watcher. Changing this forces a new resource to be created.
     * 
     */
    public Optional<Output<String>> networkWatcherId() {
        return Optional.ofNullable(this.networkWatcherId);
    }

    /**
     * A `storage_location` block as defined below. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="storageLocation")
    private @Nullable Output<ScaleSetPacketCaptureStorageLocationArgs> storageLocation;

    /**
     * @return A `storage_location` block as defined below. Changing this forces a new resource to be created.
     * 
     */
    public Optional<Output<ScaleSetPacketCaptureStorageLocationArgs>> storageLocation() {
        return Optional.ofNullable(this.storageLocation);
    }

    /**
     * The resource ID of the Virtual Machine Scale Set to capture packets from. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="virtualMachineScaleSetId")
    private @Nullable Output<String> virtualMachineScaleSetId;

    /**
     * @return The resource ID of the Virtual Machine Scale Set to capture packets from. Changing this forces a new resource to be created.
     * 
     */
    public Optional<Output<String>> virtualMachineScaleSetId() {
        return Optional.ofNullable(this.virtualMachineScaleSetId);
    }

    private ScaleSetPacketCaptureState() {}

    private ScaleSetPacketCaptureState(ScaleSetPacketCaptureState $) {
        this.filters = $.filters;
        this.machineScope = $.machineScope;
        this.maximumBytesPerPacket = $.maximumBytesPerPacket;
        this.maximumBytesPerSession = $.maximumBytesPerSession;
        this.maximumCaptureDurationInSeconds = $.maximumCaptureDurationInSeconds;
        this.name = $.name;
        this.networkWatcherId = $.networkWatcherId;
        this.storageLocation = $.storageLocation;
        this.virtualMachineScaleSetId = $.virtualMachineScaleSetId;
    }

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

    public static final class Builder {
        private ScaleSetPacketCaptureState $;

        public Builder() {
            $ = new ScaleSetPacketCaptureState();
        }

        public Builder(ScaleSetPacketCaptureState defaults) {
            $ = new ScaleSetPacketCaptureState(Objects.requireNonNull(defaults));
        }

        /**
         * @param filters One or more `filter` blocks as defined below. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder filters(@Nullable Output<List<ScaleSetPacketCaptureFilterArgs>> filters) {
            $.filters = filters;
            return this;
        }

        /**
         * @param filters One or more `filter` blocks as defined below. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder filters(List<ScaleSetPacketCaptureFilterArgs> filters) {
            return filters(Output.of(filters));
        }

        /**
         * @param filters One or more `filter` blocks as defined below. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder filters(ScaleSetPacketCaptureFilterArgs... filters) {
            return filters(List.of(filters));
        }

        /**
         * @param machineScope A `machine_scope` block as defined below. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder machineScope(@Nullable Output<ScaleSetPacketCaptureMachineScopeArgs> machineScope) {
            $.machineScope = machineScope;
            return this;
        }

        /**
         * @param machineScope A `machine_scope` block as defined below. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder machineScope(ScaleSetPacketCaptureMachineScopeArgs machineScope) {
            return machineScope(Output.of(machineScope));
        }

        /**
         * @param maximumBytesPerPacket The number of bytes captured per packet. The remaining bytes are truncated. Defaults to `0` (Entire Packet Captured). Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder maximumBytesPerPacket(@Nullable Output<Integer> maximumBytesPerPacket) {
            $.maximumBytesPerPacket = maximumBytesPerPacket;
            return this;
        }

        /**
         * @param maximumBytesPerPacket The number of bytes captured per packet. The remaining bytes are truncated. Defaults to `0` (Entire Packet Captured). Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder maximumBytesPerPacket(Integer maximumBytesPerPacket) {
            return maximumBytesPerPacket(Output.of(maximumBytesPerPacket));
        }

        /**
         * @param maximumBytesPerSession Maximum size of the capture in Bytes. Defaults to `1073741824` (1GB). Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder maximumBytesPerSession(@Nullable Output<Integer> maximumBytesPerSession) {
            $.maximumBytesPerSession = maximumBytesPerSession;
            return this;
        }

        /**
         * @param maximumBytesPerSession Maximum size of the capture in Bytes. Defaults to `1073741824` (1GB). Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder maximumBytesPerSession(Integer maximumBytesPerSession) {
            return maximumBytesPerSession(Output.of(maximumBytesPerSession));
        }

        /**
         * @param maximumCaptureDurationInSeconds The maximum duration of the capture session in seconds. Defaults to `18000` (5 hours). Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder maximumCaptureDurationInSeconds(@Nullable Output<Integer> maximumCaptureDurationInSeconds) {
            $.maximumCaptureDurationInSeconds = maximumCaptureDurationInSeconds;
            return this;
        }

        /**
         * @param maximumCaptureDurationInSeconds The maximum duration of the capture session in seconds. Defaults to `18000` (5 hours). Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder maximumCaptureDurationInSeconds(Integer maximumCaptureDurationInSeconds) {
            return maximumCaptureDurationInSeconds(Output.of(maximumCaptureDurationInSeconds));
        }

        /**
         * @param name The name to use for this Network Packet Capture. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output<String> name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name to use for this Network Packet Capture. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param networkWatcherId The resource ID of the Network Watcher. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder networkWatcherId(@Nullable Output<String> networkWatcherId) {
            $.networkWatcherId = networkWatcherId;
            return this;
        }

        /**
         * @param networkWatcherId The resource ID of the Network Watcher. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder networkWatcherId(String networkWatcherId) {
            return networkWatcherId(Output.of(networkWatcherId));
        }

        /**
         * @param storageLocation A `storage_location` block as defined below. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder storageLocation(@Nullable Output<ScaleSetPacketCaptureStorageLocationArgs> storageLocation) {
            $.storageLocation = storageLocation;
            return this;
        }

        /**
         * @param storageLocation A `storage_location` block as defined below. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder storageLocation(ScaleSetPacketCaptureStorageLocationArgs storageLocation) {
            return storageLocation(Output.of(storageLocation));
        }

        /**
         * @param virtualMachineScaleSetId The resource ID of the Virtual Machine Scale Set to capture packets from. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder virtualMachineScaleSetId(@Nullable Output<String> virtualMachineScaleSetId) {
            $.virtualMachineScaleSetId = virtualMachineScaleSetId;
            return this;
        }

        /**
         * @param virtualMachineScaleSetId The resource ID of the Virtual Machine Scale Set to capture packets from. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder virtualMachineScaleSetId(String virtualMachineScaleSetId) {
            return virtualMachineScaleSetId(Output.of(virtualMachineScaleSetId));
        }

        public ScaleSetPacketCaptureState build() {
            return $;
        }
    }

}
