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, setIdentifier
getQuery, supports100Continue
protected Acl acl
protected AccessTokenPolicy policy
public java.lang.String getServiceRelativePath()
Request
getServiceRelativePath
in class Request
public java.lang.String getMethod()
Request
public java.util.Map<java.lang.String,java.util.List<java.lang.Object>> generateHeaders()
Request
generateHeaders
in class ObjectRequest<CreateAccessTokenRequest>
protected CreateAccessTokenRequest me()
ObjectRequest
new CreateObjectRequest().identifier(path).content(content)
.me
in class ObjectRequest<CreateAccessTokenRequest>
public java.lang.String getContentType()
getContentType
in interface ContentRequest
public java.lang.Object getContent()
getContent
in interface ContentRequest
public long getContentLength()
getContentLength
in interface ContentRequest
public 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)