public static class Permission.Builder
extends java.lang.Object
Permission
objects.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Permission.Builder |
allowDelete()
AllowDelete gives permission to delete buckets and objects.
|
Permission.Builder |
allowDownload()
AllowDownload gives permission to download the object's content.
|
Permission.Builder |
allowList()
AllowList gives permission to list buckets.
|
Permission.Builder |
allowUpload()
AllowUpload gives permission to create buckets and upload new objects.
|
Permission |
build()
Creates the new
Permission object from this builder. |
Permission.Builder |
notAfter(java.util.Date notAfter)
NotAfter restricts when the resulting access grant is valid for.
|
Permission.Builder |
notBefore(java.util.Date notBefore)
NotBefore restricts when the resulting access grant is valid for.
|
public Permission.Builder allowDownload()
public Permission.Builder allowUpload()
public Permission.Builder allowList()
public Permission.Builder allowDelete()
public Permission.Builder notAfter(java.util.Date notAfter)
notAfter
- a Date
public Permission.Builder notBefore(java.util.Date notBefore)
notBefore
- a Date
public Permission build()
Permission
object from this builder.Permission