Package com.azure.data.tables.sas
Class TableSasIpRange
- java.lang.Object
-
- com.azure.data.tables.sas.TableSasIpRange
-
public final class TableSasIpRange extends Object
This type specifies a continuous range of IP addresses. It is used to limit permissions on SAS tokens. Null may be set if it is not desired to confine the sas permissions to an IP range.
-
-
Constructor Summary
Constructors Constructor Description TableSasIpRange()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetIpMax()StringgetIpMin()static TableSasIpRangeparse(String rangeStr)Creates aTableSasIpRangefrom the specified string.TableSasIpRangesetIpMax(String ipMax)Sets the maximum IP address of the range.TableSasIpRangesetIpMin(String ipMin)Sets the minimum IP address of the range.StringtoString()Output the single IP address or range of IP addresses formatted as aString.
-
-
-
Method Detail
-
parse
public static TableSasIpRange parse(String rangeStr)
Creates aTableSasIpRangefrom the specified string.- Parameters:
rangeStr- TheStringrepresentation of theTableSasIpRange.- Returns:
- The
TableSasIpRangegenerated from theString.
-
getIpMin
public String getIpMin()
- Returns:
- The minimum IP address of the range.
-
setIpMin
public TableSasIpRange setIpMin(String ipMin)
Sets the minimum IP address of the range.- Parameters:
ipMin- IP address to set as the minimum.- Returns:
- The updated
TableSasIpRangeobject.
-
getIpMax
public String getIpMax()
- Returns:
- The maximum IP address of the range.
-
setIpMax
public TableSasIpRange setIpMax(String ipMax)
Sets the maximum IP address of the range.- Parameters:
ipMax- IP address to set as the maximum.- Returns:
- The updated
TableSasIpRangeobject.
-
toString
public String toString()
Output the single IP address or range of IP addresses formatted as aString. IfminIpRangeis set tonull, an empty string is returned from this method. Otherwise, ifmaxIpRangeis set tonull, then this method returns the value ofminIpRange.
-
-