AccessPolicy Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. AccessPolicy
- com.
Implements
public final class AccessPolicy
implements JsonSerializable<AccessPolicy>
The AccessPolicy model.
Constructor Summary
Constructor | Description |
---|---|
AccessPolicy() |
Creates an instance of Access |
Method Summary
Modifier and Type | Method and Description |
---|---|
Offset |
expiryTime()
Get the expiry |
static
Access |
fromJson(JsonReader jsonReader)
Reads an instance of Access |
String |
permission()
Get the permission property: List of abbreviated permissions. |
Offset |
startTime()
Get the start |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Access |
withExpiryTime(OffsetDateTime expiryTime)
Set the expiry |
Access |
withPermission(String permission)
Set the permission property: List of abbreviated permissions. |
Access |
withStartTime(OffsetDateTime startTime)
Set the start |
Methods inherited from java.lang.Object
Constructor Details
AccessPolicy
public AccessPolicy()
Creates an instance of AccessPolicy class.
Method Details
expiryTime
public OffsetDateTime expiryTime()
Get the expiryTime property: Expiry time of the access policy.
Returns:
fromJson
public static AccessPolicy fromJson(JsonReader jsonReader)
Reads an instance of AccessPolicy from the JsonReader.
Parameters:
Returns:
Throws:
permission
public String permission()
Get the permission property: List of abbreviated permissions.
Returns:
startTime
public OffsetDateTime startTime()
Get the startTime property: Start time of the access policy.
Returns:
toJson
validate
public void validate()
Validates the instance.
withExpiryTime
public AccessPolicy withExpiryTime(OffsetDateTime expiryTime)
Set the expiryTime property: Expiry time of the access policy.
Parameters:
Returns:
withPermission
public AccessPolicy withPermission(String permission)
Set the permission property: List of abbreviated permissions.
Parameters:
Returns:
withStartTime
public AccessPolicy withStartTime(OffsetDateTime startTime)
Set the startTime property: Start time of the access policy.
Parameters:
Returns: