SasPolicy Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. SasPolicy
- com.
Implements
public final class SasPolicy
implements JsonSerializable<SasPolicy>
SasPolicy assigned to the storage account.
Constructor Summary
Constructor | Description |
---|---|
SasPolicy() |
Creates an instance of Sas |
Method Summary
Modifier and Type | Method and Description |
---|---|
Expiration |
expirationAction()
Get the expiration |
static
Sas |
fromJson(JsonReader jsonReader)
Reads an instance of Sas |
String |
sasExpirationPeriod()
Get the sas |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Sas |
withExpirationAction(ExpirationAction expirationAction)
Set the expiration |
Sas |
withSasExpirationPeriod(String sasExpirationPeriod)
Set the sas |
Methods inherited from java.lang.Object
Constructor Details
SasPolicy
public SasPolicy()
Creates an instance of SasPolicy class.
Method Details
expirationAction
public ExpirationAction expirationAction()
Get the expirationAction property: The SAS Expiration Action defines the action to be performed when sasPolicy.sasExpirationPeriod is violated. The 'Log' action can be used for audit purposes and the 'Block' action can be used to block and deny the usage of SAS tokens that do not adhere to the sas policy expiration period.
Returns:
fromJson
public static SasPolicy fromJson(JsonReader jsonReader)
Reads an instance of SasPolicy from the JsonReader.
Parameters:
Returns:
Throws:
sasExpirationPeriod
public String sasExpirationPeriod()
Get the sasExpirationPeriod property: The SAS expiration period, DD.HH:MM:SS.
Returns:
toJson
validate
public void validate()
Validates the instance.
withExpirationAction
public SasPolicy withExpirationAction(ExpirationAction expirationAction)
Set the expirationAction property: The SAS Expiration Action defines the action to be performed when sasPolicy.sasExpirationPeriod is violated. The 'Log' action can be used for audit purposes and the 'Block' action can be used to block and deny the usage of SAS tokens that do not adhere to the sas policy expiration period.
Parameters:
Returns:
withSasExpirationPeriod
public SasPolicy withSasExpirationPeriod(String sasExpirationPeriod)
Set the sasExpirationPeriod property: The SAS expiration period, DD.HH:MM:SS.
Parameters:
Returns:
Applies to
Azure SDK for Java