IPv6FirewallRuleInner Class

public final class IPv6FirewallRuleInner
extends ProxyResourceWithWritableName

An IPv6 server firewall rule.

Constructor Summary

Constructor Description
IPv6FirewallRuleInner()

Creates an instance of IPv6FirewallRuleInner class.

Method Summary

Modifier and Type Method and Description
String endIPv6Address()

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

static IPv6FirewallRuleInner fromJson(JsonReader jsonReader)

Reads an instance of IPv6FirewallRuleInner from the JsonReader.

String id()

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

String startIPv6Address()

Get the startIPv6Address 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.

IPv6FirewallRuleInner withEndIPv6Address(String endIPv6Address)

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

IPv6FirewallRuleInner withName(String name)

Set the name property: Resource name.

IPv6FirewallRuleInner withStartIPv6Address(String startIPv6Address)

Set the startIPv6Address 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

IPv6FirewallRuleInner

public IPv6FirewallRuleInner()

Creates an instance of IPv6FirewallRuleInner class.

Method Details

endIPv6Address

public String endIPv6Address()

Get the endIPv6Address property: The end IP address of the firewall rule. Must be IPv6 format. Must be greater than or equal to startIpAddress.

Returns:

the endIPv6Address value.

fromJson

public static IPv6FirewallRuleInner fromJson(JsonReader jsonReader)

Reads an instance of IPv6FirewallRuleInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

IPv6FirewallRuleInner.id()

Returns:

the id value.

startIPv6Address

public String startIPv6Address()

Get the startIPv6Address property: The start IP address of the firewall rule. Must be IPv6 format.

Returns:

the startIPv6Address value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

IPv6FirewallRuleInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

IPv6FirewallRuleInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

IPv6FirewallRuleInner.validate()

withEndIPv6Address

public IPv6FirewallRuleInner withEndIPv6Address(String endIPv6Address)

Set the endIPv6Address property: The end IP address of the firewall rule. Must be IPv6 format. Must be greater than or equal to startIpAddress.

Parameters:

endIPv6Address - the endIPv6Address value to set.

Returns:

the IPv6FirewallRuleInner object itself.

withName

public IPv6FirewallRuleInner withName(String name)

Set the name property: Resource name.

Overrides:

IPv6FirewallRuleInner.withName(String name)

Parameters:

name

withStartIPv6Address

public IPv6FirewallRuleInner withStartIPv6Address(String startIPv6Address)

Set the startIPv6Address property: The start IP address of the firewall rule. Must be IPv6 format.

Parameters:

startIPv6Address - the startIPv6Address value to set.

Returns:

the IPv6FirewallRuleInner object itself.

Applies to