Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.storage; import com.fasterxml.jackson.annotation.JsonProperty;
IP rule with specific IP or IP range in CIDR format.
/** * IP rule with specific IP or IP range in CIDR format. */
public class IPRule {
Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
/** * Specifies the IP or IP range in CIDR format. Only IPV4 address is * allowed. */
@JsonProperty(value = "value", required = true) private String iPAddressOrRange;
The action of IP ACL rule. Possible values include: 'Allow'.
/** * The action of IP ACL rule. Possible values include: 'Allow'. */
@JsonProperty(value = "action") private Action action;
Get specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
Returns:the iPAddressOrRange value
/** * Get specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. * * @return the iPAddressOrRange value */
public String iPAddressOrRange() { return this.iPAddressOrRange; }
Set specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
Params:
  • iPAddressOrRange – the iPAddressOrRange value to set
Returns:the IPRule object itself.
/** * Set specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. * * @param iPAddressOrRange the iPAddressOrRange value to set * @return the IPRule object itself. */
public IPRule withIPAddressOrRange(String iPAddressOrRange) { this.iPAddressOrRange = iPAddressOrRange; return this; }
Get the action of IP ACL rule. Possible values include: 'Allow'.
Returns:the action value
/** * Get the action of IP ACL rule. Possible values include: 'Allow'. * * @return the action value */
public Action action() { return this.action; }
Set the action of IP ACL rule. Possible values include: 'Allow'.
Params:
  • action – the action value to set
Returns:the IPRule object itself.
/** * Set the action of IP ACL rule. Possible values include: 'Allow'. * * @param action the action value to set * @return the IPRule object itself. */
public IPRule withAction(Action action) { this.action = action; return this; } }