IpFirewallRuleInfoInner Class

public final class IpFirewallRuleInfoInner
extends ProxyResource

IP firewall rule.

Constructor Summary

Constructor Description
IpFirewallRuleInfoInner()

Creates an instance of IpFirewallRuleInfoInner class.

Method Summary

Modifier and Type Method and Description
String endIpAddress()

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

static IpFirewallRuleInfoInner fromJson(JsonReader jsonReader)

Reads an instance of IpFirewallRuleInfoInner 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.

ProvisioningState provisioningState()

Get the provisioningState property: Resource provisioning state.

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.

IpFirewallRuleInfoInner withEndIpAddress(String endIpAddress)

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

IpFirewallRuleInfoInner withStartIpAddress(String startIpAddress)

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

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

IpFirewallRuleInfoInner

public IpFirewallRuleInfoInner()

Creates an instance of IpFirewallRuleInfoInner 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.

Returns:

the endIpAddress value.

fromJson

public static IpFirewallRuleInfoInner fromJson(JsonReader jsonReader)

Reads an instance of IpFirewallRuleInfoInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of IpFirewallRuleInfoInner 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:

IpFirewallRuleInfoInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

IpFirewallRuleInfoInner.name()

Returns:

the name value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: Resource provisioning state.

Returns:

the provisioningState value.

startIpAddress

public String startIpAddress()

Get the startIpAddress property: The start IP address of the firewall rule. Must be IPv4 format.

Returns:

the startIpAddress value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

IpFirewallRuleInfoInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

IpFirewallRuleInfoInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withEndIpAddress

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

Parameters:

endIpAddress - the endIpAddress value to set.

Returns:

the IpFirewallRuleInfoInner object itself.

withStartIpAddress

public IpFirewallRuleInfoInner withStartIpAddress(String startIpAddress)

Set the startIpAddress property: The start IP address of the firewall rule. Must be IPv4 format.

Parameters:

startIpAddress - the startIpAddress value to set.

Returns:

the IpFirewallRuleInfoInner object itself.

Applies to