Class RedisFirewallRuleCreateParameters
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.redis.fluent.models.RedisFirewallRuleInner
com.azure.resourcemanager.redis.models.RedisFirewallRuleCreateParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
Parameters required for creating a firewall rule on redis cache. (Note, you can just use the FirewallRule type
instead now.).
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RedisFirewallRuleCreateParameters class. -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate()Validates the instance.Set the endIp property: highest IP address included in the range.withStartIp(String startIp) Set the startIp property: lowest IP address included in the range.Methods inherited from class com.azure.resourcemanager.redis.fluent.models.RedisFirewallRuleInner
endIp, startIpMethods inherited from class com.azure.core.management.ProxyResource
fromJson, id, name, toJson, type
-
Constructor Details
-
RedisFirewallRuleCreateParameters
public RedisFirewallRuleCreateParameters()Creates an instance of RedisFirewallRuleCreateParameters class.
-
-
Method Details
-
withStartIp
Set the startIp property: lowest IP address included in the range.- Overrides:
withStartIpin classRedisFirewallRuleInner- Parameters:
startIp- the startIp value to set.- Returns:
- the RedisFirewallRuleInner object itself.
-
withEndIp
Set the endIp property: highest IP address included in the range.- Overrides:
withEndIpin classRedisFirewallRuleInner- Parameters:
endIp- the endIp value to set.- Returns:
- the RedisFirewallRuleInner object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classRedisFirewallRuleInner- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-