@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class IsAuthorizedWithTokenRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
IsAuthorizedWithTokenRequest() |
Modifier and Type | Method and Description |
---|---|
IsAuthorizedWithTokenRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAccessToken()
Specifies an access token for the principal to be authorized.
|
ActionIdentifier |
getAction()
Specifies the requested action to be authorized.
|
ContextDefinition |
getContext()
Specifies additional context that can be used to make more granular authorization decisions.
|
EntitiesDefinition |
getEntities()
Specifies the list of resources and principals and their associated attributes that Verified Permissions can
examine when evaluating the policies.
|
String |
getIdentityToken()
Specifies an identity token for the principal to be authorized.
|
String |
getPolicyStoreId()
Specifies the ID of the policy store.
|
EntityIdentifier |
getResource()
Specifies the resource for which the authorization decision is made.
|
int |
hashCode() |
void |
setAccessToken(String accessToken)
Specifies an access token for the principal to be authorized.
|
void |
setAction(ActionIdentifier action)
Specifies the requested action to be authorized.
|
void |
setContext(ContextDefinition context)
Specifies additional context that can be used to make more granular authorization decisions.
|
void |
setEntities(EntitiesDefinition entities)
Specifies the list of resources and principals and their associated attributes that Verified Permissions can
examine when evaluating the policies.
|
void |
setIdentityToken(String identityToken)
Specifies an identity token for the principal to be authorized.
|
void |
setPolicyStoreId(String policyStoreId)
Specifies the ID of the policy store.
|
void |
setResource(EntityIdentifier resource)
Specifies the resource for which the authorization decision is made.
|
String |
toString()
Returns a string representation of this object.
|
IsAuthorizedWithTokenRequest |
withAccessToken(String accessToken)
Specifies an access token for the principal to be authorized.
|
IsAuthorizedWithTokenRequest |
withAction(ActionIdentifier action)
Specifies the requested action to be authorized.
|
IsAuthorizedWithTokenRequest |
withContext(ContextDefinition context)
Specifies additional context that can be used to make more granular authorization decisions.
|
IsAuthorizedWithTokenRequest |
withEntities(EntitiesDefinition entities)
Specifies the list of resources and principals and their associated attributes that Verified Permissions can
examine when evaluating the policies.
|
IsAuthorizedWithTokenRequest |
withIdentityToken(String identityToken)
Specifies an identity token for the principal to be authorized.
|
IsAuthorizedWithTokenRequest |
withPolicyStoreId(String policyStoreId)
Specifies the ID of the policy store.
|
IsAuthorizedWithTokenRequest |
withResource(EntityIdentifier resource)
Specifies the resource for which the authorization decision is made.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setPolicyStoreId(String policyStoreId)
Specifies the ID of the policy store. Policies in this policy store will be used to make an authorization decision for the input.
policyStoreId
- Specifies the ID of the policy store. Policies in this policy store will be used to make an authorization
decision for the input.public String getPolicyStoreId()
Specifies the ID of the policy store. Policies in this policy store will be used to make an authorization decision for the input.
public IsAuthorizedWithTokenRequest withPolicyStoreId(String policyStoreId)
Specifies the ID of the policy store. Policies in this policy store will be used to make an authorization decision for the input.
policyStoreId
- Specifies the ID of the policy store. Policies in this policy store will be used to make an authorization
decision for the input.public void setIdentityToken(String identityToken)
Specifies an identity token for the principal to be authorized. This token is provided to you by the identity
provider (IdP) associated with the specified identity source. You must specify either an AccessToken
or an IdentityToken
, but not both.
identityToken
- Specifies an identity token for the principal to be authorized. This token is provided to you by the
identity provider (IdP) associated with the specified identity source. You must specify either an
AccessToken
or an IdentityToken
, but not both.public String getIdentityToken()
Specifies an identity token for the principal to be authorized. This token is provided to you by the identity
provider (IdP) associated with the specified identity source. You must specify either an AccessToken
or an IdentityToken
, but not both.
AccessToken
or an IdentityToken
, but not both.public IsAuthorizedWithTokenRequest withIdentityToken(String identityToken)
Specifies an identity token for the principal to be authorized. This token is provided to you by the identity
provider (IdP) associated with the specified identity source. You must specify either an AccessToken
or an IdentityToken
, but not both.
identityToken
- Specifies an identity token for the principal to be authorized. This token is provided to you by the
identity provider (IdP) associated with the specified identity source. You must specify either an
AccessToken
or an IdentityToken
, but not both.public void setAccessToken(String accessToken)
Specifies an access token for the principal to be authorized. This token is provided to you by the identity
provider (IdP) associated with the specified identity source. You must specify either an AccessToken
or an IdentityToken
, but not both.
accessToken
- Specifies an access token for the principal to be authorized. This token is provided to you by the
identity provider (IdP) associated with the specified identity source. You must specify either an
AccessToken
or an IdentityToken
, but not both.public String getAccessToken()
Specifies an access token for the principal to be authorized. This token is provided to you by the identity
provider (IdP) associated with the specified identity source. You must specify either an AccessToken
or an IdentityToken
, but not both.
AccessToken
or an IdentityToken
, but not both.public IsAuthorizedWithTokenRequest withAccessToken(String accessToken)
Specifies an access token for the principal to be authorized. This token is provided to you by the identity
provider (IdP) associated with the specified identity source. You must specify either an AccessToken
or an IdentityToken
, but not both.
accessToken
- Specifies an access token for the principal to be authorized. This token is provided to you by the
identity provider (IdP) associated with the specified identity source. You must specify either an
AccessToken
or an IdentityToken
, but not both.public void setAction(ActionIdentifier action)
Specifies the requested action to be authorized. Is the specified principal authorized to perform this action on the specified resource.
action
- Specifies the requested action to be authorized. Is the specified principal authorized to perform this
action on the specified resource.public ActionIdentifier getAction()
Specifies the requested action to be authorized. Is the specified principal authorized to perform this action on the specified resource.
public IsAuthorizedWithTokenRequest withAction(ActionIdentifier action)
Specifies the requested action to be authorized. Is the specified principal authorized to perform this action on the specified resource.
action
- Specifies the requested action to be authorized. Is the specified principal authorized to perform this
action on the specified resource.public void setResource(EntityIdentifier resource)
Specifies the resource for which the authorization decision is made. For example, is the principal allowed to perform the action on the resource?
resource
- Specifies the resource for which the authorization decision is made. For example, is the principal allowed
to perform the action on the resource?public EntityIdentifier getResource()
Specifies the resource for which the authorization decision is made. For example, is the principal allowed to perform the action on the resource?
public IsAuthorizedWithTokenRequest withResource(EntityIdentifier resource)
Specifies the resource for which the authorization decision is made. For example, is the principal allowed to perform the action on the resource?
resource
- Specifies the resource for which the authorization decision is made. For example, is the principal allowed
to perform the action on the resource?public void setContext(ContextDefinition context)
Specifies additional context that can be used to make more granular authorization decisions.
context
- Specifies additional context that can be used to make more granular authorization decisions.public ContextDefinition getContext()
Specifies additional context that can be used to make more granular authorization decisions.
public IsAuthorizedWithTokenRequest withContext(ContextDefinition context)
Specifies additional context that can be used to make more granular authorization decisions.
context
- Specifies additional context that can be used to make more granular authorization decisions.public void setEntities(EntitiesDefinition entities)
Specifies the list of resources and principals and their associated attributes that Verified Permissions can examine when evaluating the policies.
You can include only principal and resource entities in this parameter; you can't include actions. You must specify actions in the schema.
entities
- Specifies the list of resources and principals and their associated attributes that Verified Permissions
can examine when evaluating the policies. You can include only principal and resource entities in this parameter; you can't include actions. You must specify actions in the schema.
public EntitiesDefinition getEntities()
Specifies the list of resources and principals and their associated attributes that Verified Permissions can examine when evaluating the policies.
You can include only principal and resource entities in this parameter; you can't include actions. You must specify actions in the schema.
You can include only principal and resource entities in this parameter; you can't include actions. You must specify actions in the schema.
public IsAuthorizedWithTokenRequest withEntities(EntitiesDefinition entities)
Specifies the list of resources and principals and their associated attributes that Verified Permissions can examine when evaluating the policies.
You can include only principal and resource entities in this parameter; you can't include actions. You must specify actions in the schema.
entities
- Specifies the list of resources and principals and their associated attributes that Verified Permissions
can examine when evaluating the policies. You can include only principal and resource entities in this parameter; you can't include actions. You must specify actions in the schema.
public String toString()
toString
in class Object
Object.toString()
public IsAuthorizedWithTokenRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()