RedisFirewallRuleInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. redis. fluent. models. RedisFirewallRuleInner
- com.
- com.
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 Redis |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
endIp()
Get the end |
static
Redis |
fromJson(JsonReader jsonReader)
Reads an instance of Redis |
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 start |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Redis |
withEndIp(String endIp)
Set the end |
Redis |
withStartIp(String startIp)
Set the start |
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:
fromJson
public static RedisFirewallRuleInner fromJson(JsonReader jsonReader)
Reads an instance of RedisFirewallRuleInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
RedisFirewallRuleInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
RedisFirewallRuleInner.name()Returns:
startIp
public String startIp()
Get the startIp property: lowest IP address included in the range.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
RedisFirewallRuleInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
RedisFirewallRuleInner.type()Returns:
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:
Returns:
withStartIp
public RedisFirewallRuleInner withStartIp(String startIp)
Set the startIp property: lowest IP address included in the range.
Parameters:
Returns:
Applies to
Azure SDK for Java