public final class AccessPolicy
extends java.lang.Object
Constructor and Description |
---|
AccessPolicy() |
Modifier and Type | Method and Description |
---|---|
org.joda.time.DateTime |
expiry()
Get the expiry value.
|
java.lang.String |
permission()
Get the permission value.
|
org.joda.time.DateTime |
start()
Get the start value.
|
AccessPolicy |
withExpiry(org.joda.time.DateTime expiry)
Set the expiry value.
|
AccessPolicy |
withPermission(java.lang.String permission)
Set the permission value.
|
AccessPolicy |
withStart(org.joda.time.DateTime start)
Set the start value.
|
public org.joda.time.DateTime start()
public AccessPolicy withStart(org.joda.time.DateTime start)
start
- the start value to set.public org.joda.time.DateTime expiry()
public AccessPolicy withExpiry(org.joda.time.DateTime expiry)
expiry
- the expiry value to set.public java.lang.String permission()
public AccessPolicy withPermission(java.lang.String permission)
permission
- the permission value to set.