NetworkSecurityRulesEvaluationResult Class

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

Implements

public final class NetworkSecurityRulesEvaluationResult
implements JsonSerializable<NetworkSecurityRulesEvaluationResult>

Network security rules evaluation result.

Constructor Summary

Constructor Description
NetworkSecurityRulesEvaluationResult()

Creates an instance of NetworkSecurityRulesEvaluationResult class.

Method Summary

Modifier and Type Method and Description
Boolean destinationMatched()

Get the destinationMatched property: Value indicating whether destination is matched.

Boolean destinationPortMatched()

Get the destinationPortMatched property: Value indicating whether destination port is matched.

static NetworkSecurityRulesEvaluationResult fromJson(JsonReader jsonReader)

Reads an instance of NetworkSecurityRulesEvaluationResult from the JsonReader.

String name()

Get the name property: Name of the network security rule.

Boolean protocolMatched()

Get the protocolMatched property: Value indicating whether protocol is matched.

Boolean sourceMatched()

Get the sourceMatched property: Value indicating whether source is matched.

Boolean sourcePortMatched()

Get the sourcePortMatched property: Value indicating whether source port is matched.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NetworkSecurityRulesEvaluationResult withDestinationMatched(Boolean destinationMatched)

Set the destinationMatched property: Value indicating whether destination is matched.

NetworkSecurityRulesEvaluationResult withDestinationPortMatched(Boolean destinationPortMatched)

Set the destinationPortMatched property: Value indicating whether destination port is matched.

NetworkSecurityRulesEvaluationResult withName(String name)

Set the name property: Name of the network security rule.

NetworkSecurityRulesEvaluationResult withProtocolMatched(Boolean protocolMatched)

Set the protocolMatched property: Value indicating whether protocol is matched.

NetworkSecurityRulesEvaluationResult withSourceMatched(Boolean sourceMatched)

Set the sourceMatched property: Value indicating whether source is matched.

NetworkSecurityRulesEvaluationResult withSourcePortMatched(Boolean sourcePortMatched)

Set the sourcePortMatched property: Value indicating whether source port is matched.

Methods inherited from java.lang.Object

Constructor Details

NetworkSecurityRulesEvaluationResult

public NetworkSecurityRulesEvaluationResult()

Creates an instance of NetworkSecurityRulesEvaluationResult class.

Method Details

destinationMatched

public Boolean destinationMatched()

Get the destinationMatched property: Value indicating whether destination is matched.

Returns:

the destinationMatched value.

destinationPortMatched

public Boolean destinationPortMatched()

Get the destinationPortMatched property: Value indicating whether destination port is matched.

Returns:

the destinationPortMatched value.

fromJson

public static NetworkSecurityRulesEvaluationResult fromJson(JsonReader jsonReader)

Reads an instance of NetworkSecurityRulesEvaluationResult from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of NetworkSecurityRulesEvaluationResult 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 NetworkSecurityRulesEvaluationResult.

name

public String name()

Get the name property: Name of the network security rule.

Returns:

the name value.

protocolMatched

public Boolean protocolMatched()

Get the protocolMatched property: Value indicating whether protocol is matched.

Returns:

the protocolMatched value.

sourceMatched

public Boolean sourceMatched()

Get the sourceMatched property: Value indicating whether source is matched.

Returns:

the sourceMatched value.

sourcePortMatched

public Boolean sourcePortMatched()

Get the sourcePortMatched property: Value indicating whether source port is matched.

Returns:

the sourcePortMatched value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDestinationMatched

public NetworkSecurityRulesEvaluationResult withDestinationMatched(Boolean destinationMatched)

Set the destinationMatched property: Value indicating whether destination is matched.

Parameters:

destinationMatched - the destinationMatched value to set.

Returns:

the NetworkSecurityRulesEvaluationResult object itself.

withDestinationPortMatched

public NetworkSecurityRulesEvaluationResult withDestinationPortMatched(Boolean destinationPortMatched)

Set the destinationPortMatched property: Value indicating whether destination port is matched.

Parameters:

destinationPortMatched - the destinationPortMatched value to set.

Returns:

the NetworkSecurityRulesEvaluationResult object itself.

withName

public NetworkSecurityRulesEvaluationResult withName(String name)

Set the name property: Name of the network security rule.

Parameters:

name - the name value to set.

Returns:

the NetworkSecurityRulesEvaluationResult object itself.

withProtocolMatched

public NetworkSecurityRulesEvaluationResult withProtocolMatched(Boolean protocolMatched)

Set the protocolMatched property: Value indicating whether protocol is matched.

Parameters:

protocolMatched - the protocolMatched value to set.

Returns:

the NetworkSecurityRulesEvaluationResult object itself.

withSourceMatched

public NetworkSecurityRulesEvaluationResult withSourceMatched(Boolean sourceMatched)

Set the sourceMatched property: Value indicating whether source is matched.

Parameters:

sourceMatched - the sourceMatched value to set.

Returns:

the NetworkSecurityRulesEvaluationResult object itself.

withSourcePortMatched

public NetworkSecurityRulesEvaluationResult withSourcePortMatched(Boolean sourcePortMatched)

Set the sourcePortMatched property: Value indicating whether source port is matched.

Parameters:

sourcePortMatched - the sourcePortMatched value to set.

Returns:

the NetworkSecurityRulesEvaluationResult object itself.

Applies to