Partilhar via


RedisFirewallRuleInner Class

public class RedisFirewallRuleInner
extends ProxyResource

A firewall rule on a redis cache has a name, and describes a contiguous range of IP addresses permitted to connect.

Constructor Summary

Constructor Description
RedisFirewallRuleInner()

Creates an instance of RedisFirewallRuleInner class.

Method Summary

Modifier and Type Method and Description
String endIp()

Get the endIp property: highest IP address included in the range.

static RedisFirewallRuleInner fromJson(JsonReader jsonReader)

Reads an instance of RedisFirewallRuleInner 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 startIp()

Get the startIp property: lowest IP address included in the range.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

RedisFirewallRuleInner withEndIp(String endIp)

Set the endIp property: highest IP address included in the range.

RedisFirewallRuleInner withStartIp(String startIp)

Set the startIp property: lowest IP address included in the range.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

RedisFirewallRuleInner

public RedisFirewallRuleInner()

Creates an instance of RedisFirewallRuleInner class.

Method Details

endIp

public String endIp()

Get the endIp property: highest IP address included in the range.

Returns:

the endIp value.

fromJson

public static RedisFirewallRuleInner fromJson(JsonReader jsonReader)

Reads an instance of RedisFirewallRuleInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

RedisFirewallRuleInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

RedisFirewallRuleInner.name()

Returns:

the name value.

startIp

public String startIp()

Get the startIp property: lowest IP address included in the range.

Returns:

the startIp value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

RedisFirewallRuleInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

RedisFirewallRuleInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withEndIp

public RedisFirewallRuleInner withEndIp(String endIp)

Set the endIp property: highest IP address included in the range.

Parameters:

endIp - the endIp value to set.

Returns:

the RedisFirewallRuleInner object itself.

withStartIp

public RedisFirewallRuleInner withStartIp(String startIp)

Set the startIp property: lowest IP address included in the range.

Parameters:

startIp - the startIp value to set.

Returns:

the RedisFirewallRuleInner object itself.

Applies to