Class FirewallRuleInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.sql.fluent.models.FirewallRuleInner
-
public class FirewallRuleInner extends com.azure.core.management.ProxyResourceRepresents a server firewall rule.
-
-
Constructor Summary
Constructors Constructor Description FirewallRuleInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringendIpAddress()Get the endIpAddress property: The end IP address of the firewall rule.Stringkind()Get the kind property: Kind of server that contains this firewall rule.Stringlocation()Get the location property: Location of the server that contains this firewall rule.StringstartIpAddress()Get the startIpAddress property: The start IP address of the firewall rule.voidvalidate()Validates the instance.FirewallRuleInnerwithEndIpAddress(String endIpAddress)Set the endIpAddress property: The end IP address of the firewall rule.FirewallRuleInnerwithStartIpAddress(String startIpAddress)Set the startIpAddress property: The start IP address of the firewall rule.
-
-
-
Method Detail
-
kind
public String kind()
Get the kind property: Kind of server that contains this firewall rule.- Returns:
- the kind value.
-
location
public String location()
Get the location property: Location of the server that contains this firewall rule.- Returns:
- the location 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' to represent all Azure-internal IP addresses.- Returns:
- the startIpAddress value.
-
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' to represent all Azure-internal IP addresses.- Parameters:
startIpAddress- the startIpAddress value to set.- Returns:
- the FirewallRuleInner object itself.
-
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' to represent all Azure-internal IP addresses.- Returns:
- the endIpAddress value.
-
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' to represent all Azure-internal IP addresses.- Parameters:
endIpAddress- the endIpAddress value to set.- Returns:
- the FirewallRuleInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-