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.
/**
* 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.
/**
* Status of packet capture session.
*/
public class PacketCaptureQueryStatusResultInner {
The name of the packet capture resource.
/**
* The name of the packet capture resource.
*/
@JsonProperty(value = "name")
private String name;
The ID of the packet capture resource.
/**
* The ID of the packet capture resource.
*/
@JsonProperty(value = "id")
private String id;
The start time of the packet capture session.
/**
* 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'.
/**
* 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.
/**
* The reason the current packet capture session was stopped.
*/
@JsonProperty(value = "stopReason")
private String stopReason;
List of errors of packet capture session.
/**
* List of errors of packet capture session.
*/
@JsonProperty(value = "packetCaptureError")
private List<PcError> packetCaptureError;
Get the name of the packet capture resource.
Returns: the name value
/**
* 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.
Params: - name – the name value to set
Returns: the PacketCaptureQueryStatusResultInner object itself.
/**
* 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.
Returns: the id value
/**
* 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.
Params: - id – the id value to set
Returns: the PacketCaptureQueryStatusResultInner object itself.
/**
* 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.
Returns: the captureStartTime value
/**
* 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.
Params: - captureStartTime – the captureStartTime value to set
Returns: the PacketCaptureQueryStatusResultInner object itself.
/**
* 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'.
Returns: the packetCaptureStatus value
/**
* 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'.
Params: - packetCaptureStatus – the packetCaptureStatus value to set
Returns: the PacketCaptureQueryStatusResultInner object itself.
/**
* 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.
Returns: the stopReason value
/**
* 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.
Params: - stopReason – the stopReason value to set
Returns: the PacketCaptureQueryStatusResultInner object itself.
/**
* 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.
Returns: the packetCaptureError value
/**
* Get list of errors of packet capture session.
*
* @return the packetCaptureError value
*/
public List<PcError> packetCaptureError() {
return this.packetCaptureError;
}
Set list of errors of packet capture session.
Params: - packetCaptureError – the packetCaptureError value to set
Returns: the PacketCaptureQueryStatusResultInner object itself.
/**
* Set list of errors of packet capture session.
*
* @param packetCaptureError the packetCaptureError value to set
* @return the PacketCaptureQueryStatusResultInner object itself.
*/
public PacketCaptureQueryStatusResultInner withPacketCaptureError(List<PcError> packetCaptureError) {
this.packetCaptureError = packetCaptureError;
return this;
}
}