public class CreateAccessTokenRequest extends ObjectRequest<CreateAccessTokenRequest> implements ContentRequest
| Modifier and Type | Field and Description |
|---|---|
protected Acl |
acl |
protected AccessTokenPolicy |
policy |
identifier| Constructor and Description |
|---|
CreateAccessTokenRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreateAccessTokenRequest |
acl(Acl acl)
Builder method for
setAcl(com.emc.atmos.api.Acl) |
java.util.Map<java.lang.String,java.util.List<java.lang.Object>> |
generateHeaders()
Returns the HTTP headers to send in this request, to be generated from other request properties immediately
before sending.
|
Acl |
getAcl()
Gets the ACL that will be assigned to objects created using this access token.
|
java.lang.Object |
getContent() |
long |
getContentLength() |
java.lang.String |
getContentType() |
java.lang.String |
getMethod()
Returns the HTTP method this request will use.
|
AccessTokenPolicy |
getPolicy()
Gets the token policy for the new access token.
|
java.lang.String |
getServiceRelativePath()
Returns the service-relative path of this request (i.e.
|
protected CreateAccessTokenRequest |
me()
Returns "this" in concrete implementation classes.
|
CreateAccessTokenRequest |
policy(AccessTokenPolicy policy)
Builder method for
setPolicy(com.emc.atmos.api.bean.AccessTokenPolicy) |
void |
setAcl(Acl acl)
Sets the ACL that will be assigned to objects created using this access token.
|
void |
setPolicy(AccessTokenPolicy policy)
Sets the token policy for the new access token.
|
getIdentifier, identifier, setIdentifiergetQuery, supports100Continueprotected Acl acl
protected AccessTokenPolicy policy
public java.lang.String getServiceRelativePath()
RequestgetServiceRelativePath in class Requestpublic java.lang.String getMethod()
Requestpublic java.util.Map<java.lang.String,java.util.List<java.lang.Object>> generateHeaders()
RequestgenerateHeaders in class ObjectRequest<CreateAccessTokenRequest>protected CreateAccessTokenRequest me()
ObjectRequestnew CreateObjectRequest().identifier(path).content(content).me in class ObjectRequest<CreateAccessTokenRequest>public java.lang.String getContentType()
getContentType in interface ContentRequestpublic java.lang.Object getContent()
getContent in interface ContentRequestpublic long getContentLength()
getContentLength in interface ContentRequestpublic CreateAccessTokenRequest acl(Acl acl)
setAcl(com.emc.atmos.api.Acl)public CreateAccessTokenRequest policy(AccessTokenPolicy policy)
setPolicy(com.emc.atmos.api.bean.AccessTokenPolicy)public Acl getAcl()
public AccessTokenPolicy getPolicy()
public void setAcl(Acl acl)
public void setPolicy(AccessTokenPolicy policy)