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;
Network security rules evaluation result.
/** * Network security rules evaluation result. */
public class NetworkSecurityRulesEvaluationResult {
Name of the network security rule.
/** * Name of the network security rule. */
@JsonProperty(value = "name") private String name;
Value indicating whether protocol is matched.
/** * Value indicating whether protocol is matched. */
@JsonProperty(value = "protocolMatched") private Boolean protocolMatched;
Value indicating whether source is matched.
/** * Value indicating whether source is matched. */
@JsonProperty(value = "sourceMatched") private Boolean sourceMatched;
Value indicating whether source port is matched.
/** * Value indicating whether source port is matched. */
@JsonProperty(value = "sourcePortMatched") private Boolean sourcePortMatched;
Value indicating whether destination is matched.
/** * Value indicating whether destination is matched. */
@JsonProperty(value = "destinationMatched") private Boolean destinationMatched;
Value indicating whether destination port is matched.
/** * Value indicating whether destination port is matched. */
@JsonProperty(value = "destinationPortMatched") private Boolean destinationPortMatched;
Get name of the network security rule.
Returns:the name value
/** * Get name of the network security rule. * * @return the name value */
public String name() { return this.name; }
Set name of the network security rule.
Params:
  • name – the name value to set
Returns:the NetworkSecurityRulesEvaluationResult object itself.
/** * Set name of the network security rule. * * @param name the name value to set * @return the NetworkSecurityRulesEvaluationResult object itself. */
public NetworkSecurityRulesEvaluationResult withName(String name) { this.name = name; return this; }
Get value indicating whether protocol is matched.
Returns:the protocolMatched value
/** * Get value indicating whether protocol is matched. * * @return the protocolMatched value */
public Boolean protocolMatched() { return this.protocolMatched; }
Set value indicating whether protocol is matched.
Params:
  • protocolMatched – the protocolMatched value to set
Returns:the NetworkSecurityRulesEvaluationResult object itself.
/** * Set value indicating whether protocol is matched. * * @param protocolMatched the protocolMatched value to set * @return the NetworkSecurityRulesEvaluationResult object itself. */
public NetworkSecurityRulesEvaluationResult withProtocolMatched(Boolean protocolMatched) { this.protocolMatched = protocolMatched; return this; }
Get value indicating whether source is matched.
Returns:the sourceMatched value
/** * Get value indicating whether source is matched. * * @return the sourceMatched value */
public Boolean sourceMatched() { return this.sourceMatched; }
Set value indicating whether source is matched.
Params:
  • sourceMatched – the sourceMatched value to set
Returns:the NetworkSecurityRulesEvaluationResult object itself.
/** * Set value indicating whether source is matched. * * @param sourceMatched the sourceMatched value to set * @return the NetworkSecurityRulesEvaluationResult object itself. */
public NetworkSecurityRulesEvaluationResult withSourceMatched(Boolean sourceMatched) { this.sourceMatched = sourceMatched; return this; }
Get value indicating whether source port is matched.
Returns:the sourcePortMatched value
/** * Get value indicating whether source port is matched. * * @return the sourcePortMatched value */
public Boolean sourcePortMatched() { return this.sourcePortMatched; }
Set value indicating whether source port is matched.
Params:
  • sourcePortMatched – the sourcePortMatched value to set
Returns:the NetworkSecurityRulesEvaluationResult object itself.
/** * Set value indicating whether source port is matched. * * @param sourcePortMatched the sourcePortMatched value to set * @return the NetworkSecurityRulesEvaluationResult object itself. */
public NetworkSecurityRulesEvaluationResult withSourcePortMatched(Boolean sourcePortMatched) { this.sourcePortMatched = sourcePortMatched; return this; }
Get value indicating whether destination is matched.
Returns:the destinationMatched value
/** * Get value indicating whether destination is matched. * * @return the destinationMatched value */
public Boolean destinationMatched() { return this.destinationMatched; }
Set value indicating whether destination is matched.
Params:
  • destinationMatched – the destinationMatched value to set
Returns:the NetworkSecurityRulesEvaluationResult object itself.
/** * Set value indicating whether destination is matched. * * @param destinationMatched the destinationMatched value to set * @return the NetworkSecurityRulesEvaluationResult object itself. */
public NetworkSecurityRulesEvaluationResult withDestinationMatched(Boolean destinationMatched) { this.destinationMatched = destinationMatched; return this; }
Get value indicating whether destination port is matched.
Returns:the destinationPortMatched value
/** * Get value indicating whether destination port is matched. * * @return the destinationPortMatched value */
public Boolean destinationPortMatched() { return this.destinationPortMatched; }
Set value indicating whether destination port is matched.
Params:
  • destinationPortMatched – the destinationPortMatched value to set
Returns:the NetworkSecurityRulesEvaluationResult object itself.
/** * Set value indicating whether destination port is matched. * * @param destinationPortMatched the destinationPortMatched value to set * @return the NetworkSecurityRulesEvaluationResult object itself. */
public NetworkSecurityRulesEvaluationResult withDestinationPortMatched(Boolean destinationPortMatched) { this.destinationPortMatched = destinationPortMatched; return this; } }