com.microsoft.azure.management.network.AzureFirewallNetworkRule 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.
/**
* 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;
/**
* Properties of the network rule.
*/
public class AzureFirewallNetworkRule {
/**
* Name of the network rule.
*/
@JsonProperty(value = "name")
private String name;
/**
* Description of the rule.
*/
@JsonProperty(value = "description")
private String description;
/**
* Array of AzureFirewallNetworkRuleProtocols.
*/
@JsonProperty(value = "protocols")
private List protocols;
/**
* List of source IP addresses for this rule.
*/
@JsonProperty(value = "sourceAddresses")
private List sourceAddresses;
/**
* List of destination IP addresses.
*/
@JsonProperty(value = "destinationAddresses")
private List destinationAddresses;
/**
* List of destination ports.
*/
@JsonProperty(value = "destinationPorts")
private List destinationPorts;
/**
* Get the name value.
*
* @return the name value
*/
public String name() {
return this.name;
}
/**
* Set the name value.
*
* @param name the name value to set
* @return the AzureFirewallNetworkRule object itself.
*/
public AzureFirewallNetworkRule withName(String name) {
this.name = name;
return this;
}
/**
* Get the description value.
*
* @return the description value
*/
public String description() {
return this.description;
}
/**
* Set the description value.
*
* @param description the description value to set
* @return the AzureFirewallNetworkRule object itself.
*/
public AzureFirewallNetworkRule withDescription(String description) {
this.description = description;
return this;
}
/**
* Get the protocols value.
*
* @return the protocols value
*/
public List protocols() {
return this.protocols;
}
/**
* Set the protocols value.
*
* @param protocols the protocols value to set
* @return the AzureFirewallNetworkRule object itself.
*/
public AzureFirewallNetworkRule withProtocols(List protocols) {
this.protocols = protocols;
return this;
}
/**
* Get the sourceAddresses value.
*
* @return the sourceAddresses value
*/
public List sourceAddresses() {
return this.sourceAddresses;
}
/**
* Set the sourceAddresses value.
*
* @param sourceAddresses the sourceAddresses value to set
* @return the AzureFirewallNetworkRule object itself.
*/
public AzureFirewallNetworkRule withSourceAddresses(List sourceAddresses) {
this.sourceAddresses = sourceAddresses;
return this;
}
/**
* Get the destinationAddresses value.
*
* @return the destinationAddresses value
*/
public List destinationAddresses() {
return this.destinationAddresses;
}
/**
* Set the destinationAddresses value.
*
* @param destinationAddresses the destinationAddresses value to set
* @return the AzureFirewallNetworkRule object itself.
*/
public AzureFirewallNetworkRule withDestinationAddresses(List destinationAddresses) {
this.destinationAddresses = destinationAddresses;
return this;
}
/**
* Get the destinationPorts value.
*
* @return the destinationPorts value
*/
public List destinationPorts() {
return this.destinationPorts;
}
/**
* Set the destinationPorts value.
*
* @param destinationPorts the destinationPorts value to set
* @return the AzureFirewallNetworkRule object itself.
*/
public AzureFirewallNetworkRule withDestinationPorts(List destinationPorts) {
this.destinationPorts = destinationPorts;
return this;
}
}