Class SasPolicy
java.lang.Object
com.azure.resourcemanager.storage.models.SasPolicy
SasPolicy assigned to the storage account.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the expirationAction property: The SAS Expiration Action defines the action to be performed when sasPolicy.sasExpirationPeriod is violated.Get the sasExpirationPeriod property: The SAS expiration period, DD.HH:MM:SS.voidvalidate()Validates the instance.withExpirationAction(ExpirationAction expirationAction) Set the expirationAction property: The SAS Expiration Action defines the action to be performed when sasPolicy.sasExpirationPeriod is violated.withSasExpirationPeriod(String sasExpirationPeriod) Set the sasExpirationPeriod property: The SAS expiration period, DD.HH:MM:SS.
-
Constructor Details
-
SasPolicy
public SasPolicy()Creates an instance of SasPolicy class.
-
-
Method Details
-
sasExpirationPeriod
Get the sasExpirationPeriod property: The SAS expiration period, DD.HH:MM:SS.- Returns:
- the sasExpirationPeriod value.
-
withSasExpirationPeriod
Set the sasExpirationPeriod property: The SAS expiration period, DD.HH:MM:SS.- Parameters:
sasExpirationPeriod- the sasExpirationPeriod value to set.- Returns:
- the SasPolicy object itself.
-
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:
- the expirationAction value.
-
withExpirationAction
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:
expirationAction- the expirationAction value to set.- Returns:
- the SasPolicy object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-