FirewallRuleInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. sql. models. ResourceWithWritableName - com.
azure. resourcemanager. sql. models. ProxyResourceWithWritableName - com.
azure. resourcemanager. sql. fluent. models. FirewallRuleInner
- com.
- com.
- com.
- com.
public final class FirewallRuleInner
extends ProxyResourceWithWritableName
A server firewall rule.
Constructor Summary
Constructor | Description |
---|---|
FirewallRuleInner() |
Creates an instance of Firewall |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
endIpAddress()
Get the end |
static
Firewall |
fromJson(JsonReader jsonReader)
Reads an instance of Firewall |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
startIpAddress()
Get the start |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Firewall |
withEndIpAddress(String endIpAddress)
Set the end |
Firewall |
withName(String name)
Set the name property: Resource name. |
Firewall |
withStartIpAddress(String startIpAddress)
Set the start |
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:
fromJson
public static FirewallRuleInner fromJson(JsonReader jsonReader)
Reads an instance of FirewallRuleInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
FirewallRuleInner.id()Returns:
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:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
FirewallRuleInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
FirewallRuleInner.type()Returns:
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:
Returns:
withName
public FirewallRuleInner withName(String name)
Set the name property: Resource name.
Overrides:
FirewallRuleInner.withName(String name)Parameters:
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:
Returns:
Applies to
Azure SDK for Java