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; import com.fasterxml.jackson.annotation.JsonProperty;
Filter that is applied to packet capture request. Multiple filters can be applied.
/** * Filter that is applied to packet capture request. Multiple filters can be * applied. */
public class PacketCaptureFilter {
Protocol to be filtered on. Possible values include: 'TCP', 'UDP', 'Any'.
/** * Protocol to be filtered on. Possible values include: 'TCP', 'UDP', * 'Any'. */
@JsonProperty(value = "protocol") private PcProtocol protocol;
Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5"? for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
/** * Local IP Address to be filtered on. Notation: "127.0.0.1" for single * address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5"? * for multiple entries. Multiple ranges not currently supported. Mixing * ranges with multiple entries not currently supported. Default = null. */
@JsonProperty(value = "localIPAddress") private String localIPAddress;
Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
/** * Local IP Address to be filtered on. Notation: "127.0.0.1" for single * address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5;" * for multiple entries. Multiple ranges not currently supported. Mixing * ranges with multiple entries not currently supported. Default = null. */
@JsonProperty(value = "remoteIPAddress") private String remoteIPAddress;
Local port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
/** * Local port to be filtered on. Notation: "80" for single port * entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges * not currently supported. Mixing ranges with multiple entries not * currently supported. Default = null. */
@JsonProperty(value = "localPort") private String localPort;
Remote port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
/** * Remote port to be filtered on. Notation: "80" for single port * entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges * not currently supported. Mixing ranges with multiple entries not * currently supported. Default = null. */
@JsonProperty(value = "remotePort") private String remotePort;
Get protocol to be filtered on. Possible values include: 'TCP', 'UDP', 'Any'.
Returns:the protocol value
/** * Get protocol to be filtered on. Possible values include: 'TCP', 'UDP', 'Any'. * * @return the protocol value */
public PcProtocol protocol() { return this.protocol; }
Set protocol to be filtered on. Possible values include: 'TCP', 'UDP', 'Any'.
Params:
  • protocol – the protocol value to set
Returns:the PacketCaptureFilter object itself.
/** * Set protocol to be filtered on. Possible values include: 'TCP', 'UDP', 'Any'. * * @param protocol the protocol value to set * @return the PacketCaptureFilter object itself. */
public PacketCaptureFilter withProtocol(PcProtocol protocol) { this.protocol = protocol; return this; }
Get local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5"? for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
Returns:the localIPAddress value
/** * Get local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5"? for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null. * * @return the localIPAddress value */
public String localIPAddress() { return this.localIPAddress; }
Set local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5"? for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
Params:
  • localIPAddress – the localIPAddress value to set
Returns:the PacketCaptureFilter object itself.
/** * Set local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5"? for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null. * * @param localIPAddress the localIPAddress value to set * @return the PacketCaptureFilter object itself. */
public PacketCaptureFilter withLocalIPAddress(String localIPAddress) { this.localIPAddress = localIPAddress; return this; }
Get local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
Returns:the remoteIPAddress value
/** * Get local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null. * * @return the remoteIPAddress value */
public String remoteIPAddress() { return this.remoteIPAddress; }
Set local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
Params:
  • remoteIPAddress – the remoteIPAddress value to set
Returns:the PacketCaptureFilter object itself.
/** * Set local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null. * * @param remoteIPAddress the remoteIPAddress value to set * @return the PacketCaptureFilter object itself. */
public PacketCaptureFilter withRemoteIPAddress(String remoteIPAddress) { this.remoteIPAddress = remoteIPAddress; return this; }
Get local port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
Returns:the localPort value
/** * Get local port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null. * * @return the localPort value */
public String localPort() { return this.localPort; }
Set local port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
Params:
  • localPort – the localPort value to set
Returns:the PacketCaptureFilter object itself.
/** * Set local port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null. * * @param localPort the localPort value to set * @return the PacketCaptureFilter object itself. */
public PacketCaptureFilter withLocalPort(String localPort) { this.localPort = localPort; return this; }
Get remote port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
Returns:the remotePort value
/** * Get remote port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null. * * @return the remotePort value */
public String remotePort() { return this.remotePort; }
Set remote port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
Params:
  • remotePort – the remotePort value to set
Returns:the PacketCaptureFilter object itself.
/** * Set remote port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null. * * @param remotePort the remotePort value to set * @return the PacketCaptureFilter object itself. */
public PacketCaptureFilter withRemotePort(String remotePort) { this.remotePort = remotePort; return this; } }