Class SingleQueryResult
java.lang.Object
com.azure.resourcemanager.network.models.SingleQueryResult
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SingleQueryResult>
public final class SingleQueryResult
extends Object
implements com.azure.json.JsonSerializable<SingleQueryResult>
The SingleQueryResult model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: Describes what is the signature enforces.Get the destinationPorts property: Describes the list of destination ports related to this signature.Get the direction property: Describes in which direction signature is being enforced: 0 - OutBound, 1 - InBound, 2 - Any, 3 - Internal, 4 - InternalOutbound, 5 - InternalInbound.static SingleQueryResultfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SingleQueryResult from the JsonReader.group()Get the group property: Describes the groups the signature belongs to.Get the inheritedFromParentPolicy property: Describes if this override is inherited from base policy or not.Get the lastUpdated property: Describes the last updated time of the signature (provided from 3rd party vendor).mode()Get the mode property: The current mode enforced, 0 - Disabled, 1 - Alert, 2 -Deny.protocol()Get the protocol property: Describes the protocol the signatures is being enforced in.severity()Get the severity property: Describes the severity of signature: 1 - High, 2 - Medium, 3 - Low.Get the signatureId property: The ID of the signature.Get the sourcePorts property: Describes the list of source ports related to this signature.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDescription(String description) Set the description property: Describes what is the signature enforces.withDestinationPorts(List<String> destinationPorts) Set the destinationPorts property: Describes the list of destination ports related to this signature.Set the direction property: Describes in which direction signature is being enforced: 0 - OutBound, 1 - InBound, 2 - Any, 3 - Internal, 4 - InternalOutbound, 5 - InternalInbound.Set the group property: Describes the groups the signature belongs to.withInheritedFromParentPolicy(Boolean inheritedFromParentPolicy) Set the inheritedFromParentPolicy property: Describes if this override is inherited from base policy or not.withLastUpdated(String lastUpdated) Set the lastUpdated property: Describes the last updated time of the signature (provided from 3rd party vendor).Set the mode property: The current mode enforced, 0 - Disabled, 1 - Alert, 2 -Deny.withProtocol(String protocol) Set the protocol property: Describes the protocol the signatures is being enforced in.Set the severity property: Describes the severity of signature: 1 - High, 2 - Medium, 3 - Low.withSignatureId(Integer signatureId) Set the signatureId property: The ID of the signature.withSourcePorts(List<String> sourcePorts) Set the sourcePorts property: Describes the list of source ports related to this signature.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SingleQueryResult
public SingleQueryResult()Creates an instance of SingleQueryResult class.
-
-
Method Details
-
signatureId
Get the signatureId property: The ID of the signature.- Returns:
- the signatureId value.
-
withSignatureId
Set the signatureId property: The ID of the signature.- Parameters:
signatureId- the signatureId value to set.- Returns:
- the SingleQueryResult object itself.
-
mode
Get the mode property: The current mode enforced, 0 - Disabled, 1 - Alert, 2 -Deny.- Returns:
- the mode value.
-
withMode
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.
-
severity
Get the severity property: Describes the severity of signature: 1 - High, 2 - Medium, 3 - Low.- Returns:
- the severity value.
-
withSeverity
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.
-
direction
Get the direction property: Describes in which direction signature is being enforced: 0 - OutBound, 1 - InBound, 2 - Any, 3 - Internal, 4 - InternalOutbound, 5 - InternalInbound.- Returns:
- the direction value.
-
withDirection
Set the direction property: Describes in which direction signature is being enforced: 0 - OutBound, 1 - InBound, 2 - Any, 3 - Internal, 4 - InternalOutbound, 5 - InternalInbound.- Parameters:
direction- the direction value to set.- Returns:
- the SingleQueryResult object itself.
-
group
Get the group property: Describes the groups the signature belongs to.- Returns:
- the group value.
-
withGroup
Set the group property: Describes the groups the signature belongs to.- Parameters:
group- the group value to set.- Returns:
- the SingleQueryResult object itself.
-
description
Get the description property: Describes what is the signature enforces.- Returns:
- the description value.
-
withDescription
Set the description property: Describes what is the signature enforces.- Parameters:
description- the description value to set.- Returns:
- the SingleQueryResult object itself.
-
protocol
Get the protocol property: Describes the protocol the signatures is being enforced in.- Returns:
- the protocol value.
-
withProtocol
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.
-
sourcePorts
Get the sourcePorts property: Describes the list of source ports related to this signature.- Returns:
- the sourcePorts value.
-
withSourcePorts
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.
-
destinationPorts
Get the destinationPorts property: Describes the list of destination ports related to this signature.- Returns:
- the destinationPorts value.
-
withDestinationPorts
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.
-
lastUpdated
Get the lastUpdated property: Describes the last updated time of the signature (provided from 3rd party vendor).- Returns:
- the lastUpdated value.
-
withLastUpdated
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.
-
inheritedFromParentPolicy
Get the inheritedFromParentPolicy property: Describes if this override is inherited from base policy or not.- Returns:
- the inheritedFromParentPolicy value.
-
withInheritedFromParentPolicy
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SingleQueryResult>- Throws:
IOException
-
fromJson
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.
-