com.microsoft.azure.management.network.implementation.PacketCaptureQueryStatusResultInner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-network Show documentation
Show all versions of azure-mgmt-network Show documentation
This package contains Microsoft Azure Network Management SDK. A new set of management libraries are now Generally Available. For documentation on how to use the new libraries, please see https://aka.ms/azsdk/java/mgmt
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.network.implementation;
import org.joda.time.DateTime;
import com.microsoft.azure.management.network.PcStatus;
import java.util.List;
import com.microsoft.azure.management.network.PcError;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Status of packet capture session.
*/
public class PacketCaptureQueryStatusResultInner {
/**
* The name of the packet capture resource.
*/
@JsonProperty(value = "name")
private String name;
/**
* The ID of the packet capture resource.
*/
@JsonProperty(value = "id")
private String id;
/**
* The start time of the packet capture session.
*/
@JsonProperty(value = "captureStartTime")
private DateTime captureStartTime;
/**
* The status of the packet capture session. Possible values include:
* 'NotStarted', 'Running', 'Stopped', 'Error', 'Unknown'.
*/
@JsonProperty(value = "packetCaptureStatus")
private PcStatus packetCaptureStatus;
/**
* The reason the current packet capture session was stopped.
*/
@JsonProperty(value = "stopReason")
private String stopReason;
/**
* List of errors of packet capture session.
*/
@JsonProperty(value = "packetCaptureError")
private List packetCaptureError;
/**
* Get the name of the packet capture resource.
*
* @return the name value
*/
public String name() {
return this.name;
}
/**
* Set the name of the packet capture resource.
*
* @param name the name value to set
* @return the PacketCaptureQueryStatusResultInner object itself.
*/
public PacketCaptureQueryStatusResultInner withName(String name) {
this.name = name;
return this;
}
/**
* Get the ID of the packet capture resource.
*
* @return the id value
*/
public String id() {
return this.id;
}
/**
* Set the ID of the packet capture resource.
*
* @param id the id value to set
* @return the PacketCaptureQueryStatusResultInner object itself.
*/
public PacketCaptureQueryStatusResultInner withId(String id) {
this.id = id;
return this;
}
/**
* Get the start time of the packet capture session.
*
* @return the captureStartTime value
*/
public DateTime captureStartTime() {
return this.captureStartTime;
}
/**
* Set the start time of the packet capture session.
*
* @param captureStartTime the captureStartTime value to set
* @return the PacketCaptureQueryStatusResultInner object itself.
*/
public PacketCaptureQueryStatusResultInner withCaptureStartTime(DateTime captureStartTime) {
this.captureStartTime = captureStartTime;
return this;
}
/**
* Get the status of the packet capture session. Possible values include: 'NotStarted', 'Running', 'Stopped', 'Error', 'Unknown'.
*
* @return the packetCaptureStatus value
*/
public PcStatus packetCaptureStatus() {
return this.packetCaptureStatus;
}
/**
* Set the status of the packet capture session. Possible values include: 'NotStarted', 'Running', 'Stopped', 'Error', 'Unknown'.
*
* @param packetCaptureStatus the packetCaptureStatus value to set
* @return the PacketCaptureQueryStatusResultInner object itself.
*/
public PacketCaptureQueryStatusResultInner withPacketCaptureStatus(PcStatus packetCaptureStatus) {
this.packetCaptureStatus = packetCaptureStatus;
return this;
}
/**
* Get the reason the current packet capture session was stopped.
*
* @return the stopReason value
*/
public String stopReason() {
return this.stopReason;
}
/**
* Set the reason the current packet capture session was stopped.
*
* @param stopReason the stopReason value to set
* @return the PacketCaptureQueryStatusResultInner object itself.
*/
public PacketCaptureQueryStatusResultInner withStopReason(String stopReason) {
this.stopReason = stopReason;
return this;
}
/**
* Get list of errors of packet capture session.
*
* @return the packetCaptureError value
*/
public List packetCaptureError() {
return this.packetCaptureError;
}
/**
* Set list of errors of packet capture session.
*
* @param packetCaptureError the packetCaptureError value to set
* @return the PacketCaptureQueryStatusResultInner object itself.
*/
public PacketCaptureQueryStatusResultInner withPacketCaptureError(List packetCaptureError) {
this.packetCaptureError = packetCaptureError;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy