com.microsoft.azure.management.network.NetworkRuleCondition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-network Show documentation
Show all versions of azure-mgmt-network Show documentation
This package contains Microsoft Azure Network Management SDK. A new set of management libraries are now Generally Available. For documentation on how to use the new libraries, please see https://aka.ms/azsdk/java/mgmt
/**
* 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.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "ruleConditionType", defaultImpl = NetworkRuleCondition.class)
@JsonTypeName("NetworkRuleCondition")
public class NetworkRuleCondition extends FirewallPolicyRuleCondition {
/**
* Array of FirewallPolicyRuleConditionNetworkProtocols.
*/
@JsonProperty(value = "ipProtocols")
private List ipProtocols;
/**
* List of source IP addresses for this rule.
*/
@JsonProperty(value = "sourceAddresses")
private List sourceAddresses;
/**
* List of destination IP addresses or Service Tags.
*/
@JsonProperty(value = "destinationAddresses")
private List destinationAddresses;
/**
* List of destination ports.
*/
@JsonProperty(value = "destinationPorts")
private List destinationPorts;
/**
* Get array of FirewallPolicyRuleConditionNetworkProtocols.
*
* @return the ipProtocols value
*/
public List ipProtocols() {
return this.ipProtocols;
}
/**
* Set array of FirewallPolicyRuleConditionNetworkProtocols.
*
* @param ipProtocols the ipProtocols value to set
* @return the NetworkRuleCondition object itself.
*/
public NetworkRuleCondition withIpProtocols(List ipProtocols) {
this.ipProtocols = ipProtocols;
return this;
}
/**
* Get list of source IP addresses for this rule.
*
* @return the sourceAddresses value
*/
public List sourceAddresses() {
return this.sourceAddresses;
}
/**
* 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 sourceAddresses) {
this.sourceAddresses = sourceAddresses;
return this;
}
/**
* Get list of destination IP addresses or Service Tags.
*
* @return the destinationAddresses value
*/
public List destinationAddresses() {
return this.destinationAddresses;
}
/**
* 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 destinationAddresses) {
this.destinationAddresses = destinationAddresses;
return this;
}
/**
* Get list of destination ports.
*
* @return the destinationPorts value
*/
public List destinationPorts() {
return this.destinationPorts;
}
/**
* Set list of destination ports.
*
* @param destinationPorts the destinationPorts value to set
* @return the NetworkRuleCondition object itself.
*/
public NetworkRuleCondition withDestinationPorts(List destinationPorts) {
this.destinationPorts = destinationPorts;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy