SingleQueryResult Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. SingleQueryResult
- com.
Implements
public final class SingleQueryResult
implements JsonSerializable<SingleQueryResult>
The SingleQueryResult model.
Constructor Summary
Constructor | Description |
---|---|
SingleQueryResult() |
Creates an instance of Single |
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 destination |
Firewall |
direction()
Get the direction property: Describes in which direction signature is being enforced: 0 - Out |
static
Single |
fromJson(JsonReader jsonReader)
Reads an instance of Single |
String |
group()
Get the group property: Describes the groups the signature belongs to. |
Boolean |
inheritedFromParentPolicy()
Get the inherited |
String |
lastUpdated()
Get the last |
Firewall |
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. |
Firewall |
severity()
Get the severity property: Describes the severity of signature: 1 - High, 2 - Medium, 3 - Low. |
Integer |
signatureId()
Get the signature |
List<String> |
sourcePorts()
Get the source |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Single |
withDescription(String description)
Set the description property: Describes what is the signature enforces. |
Single |
withDestinationPorts(List<String> destinationPorts)
Set the destination |
Single |
withDirection(FirewallPolicyIdpsSignatureDirection direction)
Set the direction property: Describes in which direction signature is being enforced: 0 - Out |
Single |
withGroup(String group)
Set the group property: Describes the groups the signature belongs to. |
Single |
withInheritedFromParentPolicy(Boolean inheritedFromParentPolicy)
Set the inherited |
Single |
withLastUpdated(String lastUpdated)
Set the last |
Single |
withMode(FirewallPolicyIdpsSignatureMode mode)
Set the mode property: The current mode enforced, 0 - Disabled, 1 - Alert, 2 -Deny. |
Single |
withProtocol(String protocol)
Set the protocol property: Describes the protocol the signatures is being enforced in. |
Single |
withSeverity(FirewallPolicyIdpsSignatureSeverity severity)
Set the severity property: Describes the severity of signature: 1 - High, 2 - Medium, 3 - Low. |
Single |
withSignatureId(Integer signatureId)
Set the signature |
Single |
withSourcePorts(List<String> sourcePorts)
Set the source |
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:
destinationPorts
public List
Get the destinationPorts property: Describes the list of destination ports related to this signature.
Returns:
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:
fromJson
public static SingleQueryResult fromJson(JsonReader jsonReader)
Reads an instance of SingleQueryResult from the JsonReader.
Parameters:
Returns:
Throws:
group
public String group()
Get the group property: Describes the groups the signature belongs to.
Returns:
inheritedFromParentPolicy
public Boolean inheritedFromParentPolicy()
Get the inheritedFromParentPolicy property: Describes if this override is inherited from base policy or not.
Returns:
lastUpdated
public String lastUpdated()
Get the lastUpdated property: Describes the last updated time of the signature (provided from 3rd party vendor).
Returns:
mode
public FirewallPolicyIdpsSignatureMode mode()
Get the mode property: The current mode enforced, 0 - Disabled, 1 - Alert, 2 -Deny.
Returns:
protocol
public String protocol()
Get the protocol property: Describes the protocol the signatures is being enforced in.
Returns:
severity
public FirewallPolicyIdpsSignatureSeverity severity()
Get the severity property: Describes the severity of signature: 1 - High, 2 - Medium, 3 - Low.
Returns:
signatureId
public Integer signatureId()
Get the signatureId property: The ID of the signature.
Returns:
sourcePorts
public List
Get the sourcePorts property: Describes the list of source ports related to this signature.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDescription
public SingleQueryResult withDescription(String description)
Set the description property: Describes what is the signature enforces.
Parameters:
Returns:
withDestinationPorts
public SingleQueryResult withDestinationPorts(List
Set the destinationPorts property: Describes the list of destination ports related to this signature.
Parameters:
Returns:
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:
Returns:
withGroup
public SingleQueryResult withGroup(String group)
Set the group property: Describes the groups the signature belongs to.
Parameters:
Returns:
withInheritedFromParentPolicy
public SingleQueryResult withInheritedFromParentPolicy(Boolean inheritedFromParentPolicy)
Set the inheritedFromParentPolicy property: Describes if this override is inherited from base policy or not.
Parameters:
Returns:
withLastUpdated
public SingleQueryResult withLastUpdated(String lastUpdated)
Set the lastUpdated property: Describes the last updated time of the signature (provided from 3rd party vendor).
Parameters:
Returns:
withMode
public SingleQueryResult withMode(FirewallPolicyIdpsSignatureMode mode)
Set the mode property: The current mode enforced, 0 - Disabled, 1 - Alert, 2 -Deny.
Parameters:
Returns:
withProtocol
public SingleQueryResult withProtocol(String protocol)
Set the protocol property: Describes the protocol the signatures is being enforced in.
Parameters:
Returns:
withSeverity
public SingleQueryResult withSeverity(FirewallPolicyIdpsSignatureSeverity severity)
Set the severity property: Describes the severity of signature: 1 - High, 2 - Medium, 3 - Low.
Parameters:
Returns:
withSignatureId
public SingleQueryResult withSignatureId(Integer signatureId)
Set the signatureId property: The ID of the signature.
Parameters:
Returns:
withSourcePorts
public SingleQueryResult withSourcePorts(List
Set the sourcePorts property: Describes the list of source ports related to this signature.
Parameters:
Returns:
Applies to
Azure SDK for Java