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.

static FirewallRuleInner fromJson(JsonReader jsonReader)

Reads an instance of FirewallRuleInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String startIpAddress()

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

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

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 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.

fromJson

public static FirewallRuleInner fromJson(JsonReader jsonReader)

Reads an instance of FirewallRuleInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of FirewallRuleInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

FirewallRuleInner.id()

Returns:

the id 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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

FirewallRuleInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

FirewallRuleInner.type()

Returns:

the type 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