All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.mobilenetwork.outputs.GetPacketCaptureResult Maven / Gradle / Ivy

There is a newer version: 2.72.0
Show newest version
// *** 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.azurenative.mobilenetwork.outputs;

import com.pulumi.azurenative.mobilenetwork.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetPacketCaptureResult {
    /**
     * @return Number of bytes captured per packet, the remaining bytes are truncated. The default "0" means the entire packet is captured.
     * 
     */
    private @Nullable Double bytesToCapturePerPacket;
    /**
     * @return The start time of the packet capture session.
     * 
     */
    private String captureStartTime;
    /**
     * @return Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
     * 
     */
    private String id;
    /**
     * @return The name of the resource
     * 
     */
    private String name;
    /**
     * @return List of network interfaces to capture on.
     * 
     */
    private @Nullable List networkInterfaces;
    /**
     * @return The provisioning state of the packet capture session resource.
     * 
     */
    private String provisioningState;
    /**
     * @return The reason the current packet capture session state.
     * 
     */
    private String reason;
    /**
     * @return The status of the packet capture session.
     * 
     */
    private String status;
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return Maximum duration of the capture session in seconds.
     * 
     */
    private @Nullable Integer timeLimitInSeconds;
    /**
     * @return Maximum size of the capture output.
     * 
     */
    private @Nullable Double totalBytesPerSession;
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    private String type;

    private GetPacketCaptureResult() {}
    /**
     * @return Number of bytes captured per packet, the remaining bytes are truncated. The default "0" means the entire packet is captured.
     * 
     */
    public Optional bytesToCapturePerPacket() {
        return Optional.ofNullable(this.bytesToCapturePerPacket);
    }
    /**
     * @return The start time of the packet capture session.
     * 
     */
    public String captureStartTime() {
        return this.captureStartTime;
    }
    /**
     * @return Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The name of the resource
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return List of network interfaces to capture on.
     * 
     */
    public List networkInterfaces() {
        return this.networkInterfaces == null ? List.of() : this.networkInterfaces;
    }
    /**
     * @return The provisioning state of the packet capture session resource.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return The reason the current packet capture session state.
     * 
     */
    public String reason() {
        return this.reason;
    }
    /**
     * @return The status of the packet capture session.
     * 
     */
    public String status() {
        return this.status;
    }
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return Maximum duration of the capture session in seconds.
     * 
     */
    public Optional timeLimitInSeconds() {
        return Optional.ofNullable(this.timeLimitInSeconds);
    }
    /**
     * @return Maximum size of the capture output.
     * 
     */
    public Optional totalBytesPerSession() {
        return Optional.ofNullable(this.totalBytesPerSession);
    }
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetPacketCaptureResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Double bytesToCapturePerPacket;
        private String captureStartTime;
        private String id;
        private String name;
        private @Nullable List networkInterfaces;
        private String provisioningState;
        private String reason;
        private String status;
        private SystemDataResponse systemData;
        private @Nullable Integer timeLimitInSeconds;
        private @Nullable Double totalBytesPerSession;
        private String type;
        public Builder() {}
        public Builder(GetPacketCaptureResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.bytesToCapturePerPacket = defaults.bytesToCapturePerPacket;
    	      this.captureStartTime = defaults.captureStartTime;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.networkInterfaces = defaults.networkInterfaces;
    	      this.provisioningState = defaults.provisioningState;
    	      this.reason = defaults.reason;
    	      this.status = defaults.status;
    	      this.systemData = defaults.systemData;
    	      this.timeLimitInSeconds = defaults.timeLimitInSeconds;
    	      this.totalBytesPerSession = defaults.totalBytesPerSession;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder bytesToCapturePerPacket(@Nullable Double bytesToCapturePerPacket) {

            this.bytesToCapturePerPacket = bytesToCapturePerPacket;
            return this;
        }
        @CustomType.Setter
        public Builder captureStartTime(String captureStartTime) {
            if (captureStartTime == null) {
              throw new MissingRequiredPropertyException("GetPacketCaptureResult", "captureStartTime");
            }
            this.captureStartTime = captureStartTime;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetPacketCaptureResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetPacketCaptureResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder networkInterfaces(@Nullable List networkInterfaces) {

            this.networkInterfaces = networkInterfaces;
            return this;
        }
        public Builder networkInterfaces(String... networkInterfaces) {
            return networkInterfaces(List.of(networkInterfaces));
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetPacketCaptureResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder reason(String reason) {
            if (reason == null) {
              throw new MissingRequiredPropertyException("GetPacketCaptureResult", "reason");
            }
            this.reason = reason;
            return this;
        }
        @CustomType.Setter
        public Builder status(String status) {
            if (status == null) {
              throw new MissingRequiredPropertyException("GetPacketCaptureResult", "status");
            }
            this.status = status;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetPacketCaptureResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder timeLimitInSeconds(@Nullable Integer timeLimitInSeconds) {

            this.timeLimitInSeconds = timeLimitInSeconds;
            return this;
        }
        @CustomType.Setter
        public Builder totalBytesPerSession(@Nullable Double totalBytesPerSession) {

            this.totalBytesPerSession = totalBytesPerSession;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetPacketCaptureResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetPacketCaptureResult build() {
            final var _resultValue = new GetPacketCaptureResult();
            _resultValue.bytesToCapturePerPacket = bytesToCapturePerPacket;
            _resultValue.captureStartTime = captureStartTime;
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.networkInterfaces = networkInterfaces;
            _resultValue.provisioningState = provisioningState;
            _resultValue.reason = reason;
            _resultValue.status = status;
            _resultValue.systemData = systemData;
            _resultValue.timeLimitInSeconds = timeLimitInSeconds;
            _resultValue.totalBytesPerSession = totalBytesPerSession;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy