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;
Properties of a NAT rule.
/** * Properties of a NAT rule. */
public class AzureFirewallNatRule {
Name of the NAT rule.
/** * Name of the NAT rule. */
@JsonProperty(value = "name") private String name;
Description of the rule.
/** * Description of the rule. */
@JsonProperty(value = "description") private String description;
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 for this rule. Supports IP ranges, prefixes, and service tags.
/** * List of destination IP addresses for this rule. Supports IP ranges, * prefixes, and service tags. */
@JsonProperty(value = "destinationAddresses") private List<String> destinationAddresses;
List of destination ports.
/** * List of destination ports. */
@JsonProperty(value = "destinationPorts") private List<String> destinationPorts;
Array of AzureFirewallNetworkRuleProtocols applicable to this NAT rule.
/** * Array of AzureFirewallNetworkRuleProtocols applicable to this NAT rule. */
@JsonProperty(value = "protocols") private List<AzureFirewallNetworkRuleProtocol> protocols;
The translated address for this NAT rule.
/** * The translated address for this NAT rule. */
@JsonProperty(value = "translatedAddress") private String translatedAddress;
The translated port for this NAT rule.
/** * The translated port for this NAT rule. */
@JsonProperty(value = "translatedPort") private String translatedPort;
The translated FQDN for this NAT rule.
/** * The translated FQDN for this NAT rule. */
@JsonProperty(value = "translatedFqdn") private String translatedFqdn;
List of source IpGroups for this rule.
/** * List of source IpGroups for this rule. */
@JsonProperty(value = "sourceIpGroups") private List<String> sourceIpGroups;
Get name of the NAT rule.
Returns:the name value
/** * Get name of the NAT rule. * * @return the name value */
public String name() { return this.name; }
Set name of the NAT rule.
Params:
  • name – the name value to set
Returns:the AzureFirewallNatRule object itself.
/** * Set name of the NAT rule. * * @param name the name value to set * @return the AzureFirewallNatRule object itself. */
public AzureFirewallNatRule withName(String name) { this.name = name; return this; }
Get description of the rule.
Returns:the description value
/** * Get description of the rule. * * @return the description value */
public String description() { return this.description; }
Set description of the rule.
Params:
  • description – the description value to set
Returns:the AzureFirewallNatRule object itself.
/** * Set description of the rule. * * @param description the description value to set * @return the AzureFirewallNatRule object itself. */
public AzureFirewallNatRule withDescription(String description) { this.description = description; 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 AzureFirewallNatRule object itself.
/** * Set list of source IP addresses for this rule. * * @param sourceAddresses the sourceAddresses value to set * @return the AzureFirewallNatRule object itself. */
public AzureFirewallNatRule withSourceAddresses(List<String> sourceAddresses) { this.sourceAddresses = sourceAddresses; return this; }
Get list of destination IP addresses for this rule. Supports IP ranges, prefixes, and service tags.
Returns:the destinationAddresses value
/** * Get list of destination IP addresses for this rule. Supports IP ranges, prefixes, and service tags. * * @return the destinationAddresses value */
public List<String> destinationAddresses() { return this.destinationAddresses; }
Set list of destination IP addresses for this rule. Supports IP ranges, prefixes, and service tags.
Params:
  • destinationAddresses – the destinationAddresses value to set
Returns:the AzureFirewallNatRule object itself.
/** * Set list of destination IP addresses for this rule. Supports IP ranges, prefixes, and service tags. * * @param destinationAddresses the destinationAddresses value to set * @return the AzureFirewallNatRule object itself. */
public AzureFirewallNatRule 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 AzureFirewallNatRule object itself.
/** * Set list of destination ports. * * @param destinationPorts the destinationPorts value to set * @return the AzureFirewallNatRule object itself. */
public AzureFirewallNatRule withDestinationPorts(List<String> destinationPorts) { this.destinationPorts = destinationPorts; return this; }
Get array of AzureFirewallNetworkRuleProtocols applicable to this NAT rule.
Returns:the protocols value
/** * Get array of AzureFirewallNetworkRuleProtocols applicable to this NAT rule. * * @return the protocols value */
public List<AzureFirewallNetworkRuleProtocol> protocols() { return this.protocols; }
Set array of AzureFirewallNetworkRuleProtocols applicable to this NAT rule.
Params:
  • protocols – the protocols value to set
Returns:the AzureFirewallNatRule object itself.
/** * Set array of AzureFirewallNetworkRuleProtocols applicable to this NAT rule. * * @param protocols the protocols value to set * @return the AzureFirewallNatRule object itself. */
public AzureFirewallNatRule withProtocols(List<AzureFirewallNetworkRuleProtocol> protocols) { this.protocols = protocols; return this; }
Get the translated address for this NAT rule.
Returns:the translatedAddress value
/** * Get the translated address for this NAT rule. * * @return the translatedAddress value */
public String translatedAddress() { return this.translatedAddress; }
Set the translated address for this NAT rule.
Params:
  • translatedAddress – the translatedAddress value to set
Returns:the AzureFirewallNatRule object itself.
/** * Set the translated address for this NAT rule. * * @param translatedAddress the translatedAddress value to set * @return the AzureFirewallNatRule object itself. */
public AzureFirewallNatRule withTranslatedAddress(String translatedAddress) { this.translatedAddress = translatedAddress; return this; }
Get the translated port for this NAT rule.
Returns:the translatedPort value
/** * Get the translated port for this NAT rule. * * @return the translatedPort value */
public String translatedPort() { return this.translatedPort; }
Set the translated port for this NAT rule.
Params:
  • translatedPort – the translatedPort value to set
Returns:the AzureFirewallNatRule object itself.
/** * Set the translated port for this NAT rule. * * @param translatedPort the translatedPort value to set * @return the AzureFirewallNatRule object itself. */
public AzureFirewallNatRule withTranslatedPort(String translatedPort) { this.translatedPort = translatedPort; return this; }
Get the translated FQDN for this NAT rule.
Returns:the translatedFqdn value
/** * Get the translated FQDN for this NAT rule. * * @return the translatedFqdn value */
public String translatedFqdn() { return this.translatedFqdn; }
Set the translated FQDN for this NAT rule.
Params:
  • translatedFqdn – the translatedFqdn value to set
Returns:the AzureFirewallNatRule object itself.
/** * Set the translated FQDN for this NAT rule. * * @param translatedFqdn the translatedFqdn value to set * @return the AzureFirewallNatRule object itself. */
public AzureFirewallNatRule withTranslatedFqdn(String translatedFqdn) { this.translatedFqdn = translatedFqdn; return this; }
Get list of source IpGroups for this rule.
Returns:the sourceIpGroups value
/** * Get list of source IpGroups for this rule. * * @return the sourceIpGroups value */
public List<String> sourceIpGroups() { return this.sourceIpGroups; }
Set list of source IpGroups for this rule.
Params:
  • sourceIpGroups – the sourceIpGroups value to set
Returns:the AzureFirewallNatRule object itself.
/** * Set list of source IpGroups for this rule. * * @param sourceIpGroups the sourceIpGroups value to set * @return the AzureFirewallNatRule object itself. */
public AzureFirewallNatRule withSourceIpGroups(List<String> sourceIpGroups) { this.sourceIpGroups = sourceIpGroups; return this; } }