Kongsi melalui


FirewallRuleInner Class

public final class FirewallRuleInner
extends ProxyResource

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: IP address defining the end of the range of addresses of a 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 name()

Get the name property: The name of the resource.

String startIpAddress()

Get the startIpAddress property: IP address defining the start of the range of addresses of a firewall rule.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

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: IP address defining the end of the range of addresses of a firewall rule.

FirewallRuleInner withStartIpAddress(String startIpAddress)

Set the startIpAddress property: IP address defining the start of the range of addresses of a firewall rule.

Methods inherited from ProxyResource

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: IP address defining the end of the range of addresses of a firewall rule. Must be expressed in IPv4 format.

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.

name

public String name()

Get the name property: The name of the resource.

Overrides:

FirewallRuleInner.name()

Returns:

the name value.

startIpAddress

public String startIpAddress()

Get the startIpAddress property: IP address defining the start of the range of addresses of a firewall rule. Must be expressed in IPv4 format.

Returns:

the startIpAddress value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

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

withEndIpAddress

public FirewallRuleInner withEndIpAddress(String endIpAddress)

Set the endIpAddress property: IP address defining the end of the range of addresses of a firewall rule. Must be expressed in IPv4 format.

Parameters:

endIpAddress - the endIpAddress value to set.

Returns:

the FirewallRuleInner object itself.

withStartIpAddress

public FirewallRuleInner withStartIpAddress(String startIpAddress)

Set the startIpAddress property: IP address defining the start of the range of addresses of a firewall rule. Must be expressed in IPv4 format.

Parameters:

startIpAddress - the startIpAddress value to set.

Returns:

the FirewallRuleInner object itself.

Applies to