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 java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
Rule condition of type network.
/**
* Rule condition of type network.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "ruleConditionType", defaultImpl = NetworkRuleCondition.class)
@JsonTypeName("NetworkRuleCondition")
public class NetworkRuleCondition extends FirewallPolicyRuleCondition {
Array of FirewallPolicyRuleConditionNetworkProtocols.
/**
* Array of FirewallPolicyRuleConditionNetworkProtocols.
*/
@JsonProperty(value = "ipProtocols")
private List<FirewallPolicyRuleConditionNetworkProtocol> ipProtocols;
List of source IP addresses for this rule.
/**
* List of source IP addresses for this rule.
*/
@JsonProperty(value = "sourceAddresses")
private List<String> sourceAddresses;
List of destination IP addresses or Service Tags.
/**
* List of destination IP addresses or Service Tags.
*/
@JsonProperty(value = "destinationAddresses")
private List<String> destinationAddresses;
List of destination ports.
/**
* List of destination ports.
*/
@JsonProperty(value = "destinationPorts")
private List<String> destinationPorts;
Get array of FirewallPolicyRuleConditionNetworkProtocols.
Returns: the ipProtocols value
/**
* Get array of FirewallPolicyRuleConditionNetworkProtocols.
*
* @return the ipProtocols value
*/
public List<FirewallPolicyRuleConditionNetworkProtocol> ipProtocols() {
return this.ipProtocols;
}
Set array of FirewallPolicyRuleConditionNetworkProtocols.
Params: - ipProtocols – the ipProtocols value to set
Returns: the NetworkRuleCondition object itself.
/**
* Set array of FirewallPolicyRuleConditionNetworkProtocols.
*
* @param ipProtocols the ipProtocols value to set
* @return the NetworkRuleCondition object itself.
*/
public NetworkRuleCondition withIpProtocols(List<FirewallPolicyRuleConditionNetworkProtocol> ipProtocols) {
this.ipProtocols = ipProtocols;
return this;
}
Get list of source IP addresses for this rule.
Returns: the sourceAddresses value
/**
* Get list of source IP addresses for this rule.
*
* @return the sourceAddresses value
*/
public List<String> sourceAddresses() {
return this.sourceAddresses;
}
Set list of source IP addresses for this rule.
Params: - sourceAddresses – the sourceAddresses value to set
Returns: the NetworkRuleCondition object itself.
/**
* Set list of source IP addresses for this rule.
*
* @param sourceAddresses the sourceAddresses value to set
* @return the NetworkRuleCondition object itself.
*/
public NetworkRuleCondition withSourceAddresses(List<String> sourceAddresses) {
this.sourceAddresses = sourceAddresses;
return this;
}
Get list of destination IP addresses or Service Tags.
Returns: the destinationAddresses value
/**
* Get list of destination IP addresses or Service Tags.
*
* @return the destinationAddresses value
*/
public List<String> destinationAddresses() {
return this.destinationAddresses;
}
Set list of destination IP addresses or Service Tags.
Params: - destinationAddresses – the destinationAddresses value to set
Returns: the NetworkRuleCondition object itself.
/**
* Set list of destination IP addresses or Service Tags.
*
* @param destinationAddresses the destinationAddresses value to set
* @return the NetworkRuleCondition object itself.
*/
public NetworkRuleCondition withDestinationAddresses(List<String> destinationAddresses) {
this.destinationAddresses = destinationAddresses;
return this;
}
Get list of destination ports.
Returns: the destinationPorts value
/**
* Get list of destination ports.
*
* @return the destinationPorts value
*/
public List<String> destinationPorts() {
return this.destinationPorts;
}
Set list of destination ports.
Params: - destinationPorts – the destinationPorts value to set
Returns: the NetworkRuleCondition object itself.
/**
* Set list of destination ports.
*
* @param destinationPorts the destinationPorts value to set
* @return the NetworkRuleCondition object itself.
*/
public NetworkRuleCondition withDestinationPorts(List<String> destinationPorts) {
this.destinationPorts = destinationPorts;
return this;
}
}