FirewallRuleInner Class

public final class FirewallRuleInner
extends ProxyResourceWithWritableName

A server firewall rule.

Constructor Summary

Constructor Description
FirewallRuleInner()

Creates an instance of FirewallRuleInner class.

Method Summary

Modifier and Type Method and Description
String endIpAddress()

Get the endIpAddress property: The end IP address of the firewall rule.

String startIpAddress()

Get the startIpAddress property: The start IP address of the firewall rule.

void validate()

Validates the instance.

FirewallRuleInner withEndIpAddress(String endIpAddress)

Set the endIpAddress property: The end IP address of the firewall rule.

FirewallRuleInner withName(String name)

Set the name property: Resource name.

FirewallRuleInner withStartIpAddress(String startIpAddress)

Set the startIpAddress property: The start IP address of the firewall rule.

Methods inherited from ProxyResource

Methods inherited from ProxyResourceWithWritableName

Methods inherited from ResourceWithWritableName

Methods inherited from java.lang.Object

Constructor Details

FirewallRuleInner

public FirewallRuleInner()

Creates an instance of FirewallRuleInner class.

Method Details

endIpAddress

public String endIpAddress()

Get the endIpAddress property: The end IP address of the firewall rule. Must be IPv4 format. Must be greater than or equal to startIpAddress. Use value '0.0.0.0' for all Azure-internal IP addresses.

Returns:

the endIpAddress value.

startIpAddress

public String startIpAddress()

Get the startIpAddress property: The start IP address of the firewall rule. Must be IPv4 format. Use value '0.0.0.0' for all Azure-internal IP addresses.

Returns:

the startIpAddress value.

validate

public void validate()

Validates the instance.

Overrides:

FirewallRuleInner.validate()

withEndIpAddress

public FirewallRuleInner withEndIpAddress(String endIpAddress)

Set the endIpAddress property: The end IP address of the firewall rule. Must be IPv4 format. Must be greater than or equal to startIpAddress. Use value '0.0.0.0' for all Azure-internal IP addresses.

Parameters:

endIpAddress - the endIpAddress value to set.

Returns:

the FirewallRuleInner object itself.

withName

public FirewallRuleInner withName(String name)

Set the name property: Resource name.

Overrides:

FirewallRuleInner.withName(String name)

Parameters:

name

withStartIpAddress

public FirewallRuleInner withStartIpAddress(String startIpAddress)

Set the startIpAddress property: The start IP address of the firewall rule. Must be IPv4 format. Use value '0.0.0.0' for all Azure-internal IP addresses.

Parameters:

startIpAddress - the startIpAddress value to set.

Returns:

the FirewallRuleInner object itself.

Applies to