SingleQueryResult Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.SingleQueryResult

Implements

public final class SingleQueryResult
implements JsonSerializable<SingleQueryResult>

The SingleQueryResult model.

Constructor Summary

Constructor Description
SingleQueryResult()

Creates an instance of SingleQueryResult class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: Describes what is the signature enforces.

List<String> destinationPorts()

Get the destinationPorts property: Describes the list of destination ports related to this signature.

FirewallPolicyIdpsSignatureDirection direction()

Get the direction property: Describes in which direction signature is being enforced: 0 - OutBound, 1 - InBound, 2 - Any, 3 - Internal, 4 - InternalOutbound.

static SingleQueryResult fromJson(JsonReader jsonReader)

Reads an instance of SingleQueryResult from the JsonReader.

String group()

Get the group property: Describes the groups the signature belongs to.

Boolean inheritedFromParentPolicy()

Get the inheritedFromParentPolicy property: Describes if this override is inherited from base policy or not.

String lastUpdated()

Get the lastUpdated property: Describes the last updated time of the signature (provided from 3rd party vendor).

FirewallPolicyIdpsSignatureMode mode()

Get the mode property: The current mode enforced, 0 - Disabled, 1 - Alert, 2 -Deny.

String protocol()

Get the protocol property: Describes the protocol the signatures is being enforced in.

FirewallPolicyIdpsSignatureSeverity severity()

Get the severity property: Describes the severity of signature: 1 - High, 2 - Medium, 3 - Low.

Integer signatureId()

Get the signatureId property: The ID of the signature.

List<String> sourcePorts()

Get the sourcePorts property: Describes the list of source ports related to this signature.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SingleQueryResult withDescription(String description)

Set the description property: Describes what is the signature enforces.

SingleQueryResult withDestinationPorts(List<String> destinationPorts)

Set the destinationPorts property: Describes the list of destination ports related to this signature.

SingleQueryResult withDirection(FirewallPolicyIdpsSignatureDirection direction)

Set the direction property: Describes in which direction signature is being enforced: 0 - OutBound, 1 - InBound, 2 - Any, 3 - Internal, 4 - InternalOutbound.

SingleQueryResult withGroup(String group)

Set the group property: Describes the groups the signature belongs to.

SingleQueryResult withInheritedFromParentPolicy(Boolean inheritedFromParentPolicy)

Set the inheritedFromParentPolicy property: Describes if this override is inherited from base policy or not.

SingleQueryResult withLastUpdated(String lastUpdated)

Set the lastUpdated property: Describes the last updated time of the signature (provided from 3rd party vendor).

SingleQueryResult withMode(FirewallPolicyIdpsSignatureMode mode)

Set the mode property: The current mode enforced, 0 - Disabled, 1 - Alert, 2 -Deny.

SingleQueryResult withProtocol(String protocol)

Set the protocol property: Describes the protocol the signatures is being enforced in.

SingleQueryResult withSeverity(FirewallPolicyIdpsSignatureSeverity severity)

Set the severity property: Describes the severity of signature: 1 - High, 2 - Medium, 3 - Low.

SingleQueryResult withSignatureId(Integer signatureId)

Set the signatureId property: The ID of the signature.

SingleQueryResult withSourcePorts(List<String> sourcePorts)

Set the sourcePorts property: Describes the list of source ports related to this signature.

Methods inherited from java.lang.Object

Constructor Details

SingleQueryResult

public SingleQueryResult()

Creates an instance of SingleQueryResult class.

Method Details

description

public String description()

Get the description property: Describes what is the signature enforces.

Returns:

the description value.

destinationPorts

public List destinationPorts()

Get the destinationPorts property: Describes the list of destination ports related to this signature.

Returns:

the destinationPorts value.

direction

public FirewallPolicyIdpsSignatureDirection direction()

Get the direction property: Describes in which direction signature is being enforced: 0 - OutBound, 1 - InBound, 2 - Any, 3 - Internal, 4 - InternalOutbound.

Returns:

the direction value.

fromJson

public static SingleQueryResult fromJson(JsonReader jsonReader)

Reads an instance of SingleQueryResult from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SingleQueryResult if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the SingleQueryResult.

group

public String group()

Get the group property: Describes the groups the signature belongs to.

Returns:

the group value.

inheritedFromParentPolicy

public Boolean inheritedFromParentPolicy()

Get the inheritedFromParentPolicy property: Describes if this override is inherited from base policy or not.

Returns:

the inheritedFromParentPolicy value.

lastUpdated

public String lastUpdated()

Get the lastUpdated property: Describes the last updated time of the signature (provided from 3rd party vendor).

Returns:

the lastUpdated value.

mode

public FirewallPolicyIdpsSignatureMode mode()

Get the mode property: The current mode enforced, 0 - Disabled, 1 - Alert, 2 -Deny.

Returns:

the mode value.

protocol

public String protocol()

Get the protocol property: Describes the protocol the signatures is being enforced in.

Returns:

the protocol value.

severity

public FirewallPolicyIdpsSignatureSeverity severity()

Get the severity property: Describes the severity of signature: 1 - High, 2 - Medium, 3 - Low.

Returns:

the severity value.

signatureId

public Integer signatureId()

Get the signatureId property: The ID of the signature.

Returns:

the signatureId value.

sourcePorts

public List sourcePorts()

Get the sourcePorts property: Describes the list of source ports related to this signature.

Returns:

the sourcePorts value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDescription

public SingleQueryResult withDescription(String description)

Set the description property: Describes what is the signature enforces.

Parameters:

description - the description value to set.

Returns:

the SingleQueryResult object itself.

withDestinationPorts

public SingleQueryResult withDestinationPorts(List destinationPorts)

Set the destinationPorts property: Describes the list of destination ports related to this signature.

Parameters:

destinationPorts - the destinationPorts value to set.

Returns:

the SingleQueryResult object itself.

withDirection

public SingleQueryResult withDirection(FirewallPolicyIdpsSignatureDirection direction)

Set the direction property: Describes in which direction signature is being enforced: 0 - OutBound, 1 - InBound, 2 - Any, 3 - Internal, 4 - InternalOutbound.

Parameters:

direction - the direction value to set.

Returns:

the SingleQueryResult object itself.

withGroup

public SingleQueryResult withGroup(String group)

Set the group property: Describes the groups the signature belongs to.

Parameters:

group - the group value to set.

Returns:

the SingleQueryResult object itself.

withInheritedFromParentPolicy

public SingleQueryResult withInheritedFromParentPolicy(Boolean inheritedFromParentPolicy)

Set the inheritedFromParentPolicy property: Describes if this override is inherited from base policy or not.

Parameters:

inheritedFromParentPolicy - the inheritedFromParentPolicy value to set.

Returns:

the SingleQueryResult object itself.

withLastUpdated

public SingleQueryResult withLastUpdated(String lastUpdated)

Set the lastUpdated property: Describes the last updated time of the signature (provided from 3rd party vendor).

Parameters:

lastUpdated - the lastUpdated value to set.

Returns:

the SingleQueryResult object itself.

withMode

public SingleQueryResult withMode(FirewallPolicyIdpsSignatureMode mode)

Set the mode property: The current mode enforced, 0 - Disabled, 1 - Alert, 2 -Deny.

Parameters:

mode - the mode value to set.

Returns:

the SingleQueryResult object itself.

withProtocol

public SingleQueryResult withProtocol(String protocol)

Set the protocol property: Describes the protocol the signatures is being enforced in.

Parameters:

protocol - the protocol value to set.

Returns:

the SingleQueryResult object itself.

withSeverity

public SingleQueryResult withSeverity(FirewallPolicyIdpsSignatureSeverity severity)

Set the severity property: Describes the severity of signature: 1 - High, 2 - Medium, 3 - Low.

Parameters:

severity - the severity value to set.

Returns:

the SingleQueryResult object itself.

withSignatureId

public SingleQueryResult withSignatureId(Integer signatureId)

Set the signatureId property: The ID of the signature.

Parameters:

signatureId - the signatureId value to set.

Returns:

the SingleQueryResult object itself.

withSourcePorts

public SingleQueryResult withSourcePorts(List sourcePorts)

Set the sourcePorts property: Describes the list of source ports related to this signature.

Parameters:

sourcePorts - the sourcePorts value to set.

Returns:

the SingleQueryResult object itself.

Applies to