@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 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 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 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
, or 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
, or 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
, or both.
AccessToken
or an IdentityToken
, or 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
, or 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
, or 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
, or 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
, or 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
, or both.
AccessToken
, or an IdentityToken
, or 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
, or 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
, or 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 their associated attributes that Verified Permissions can examine when evaluating the policies.
You can include only resource and action entities in this parameter; you can't include principals.
The IsAuthorizedWithToken
operation takes principal attributes from only the
identityToken
or accessToken
passed to the operation.
For action entities, you can include only their Identifier
and EntityType
.
entities
- Specifies the list of resources and their associated attributes that Verified Permissions can examine when
evaluating the policies. You can include only resource and action entities in this parameter; you can't include principals.
The IsAuthorizedWithToken
operation takes principal attributes from only the
identityToken
or accessToken
passed to the operation.
For action entities, you can include only their Identifier
and EntityType
.
public EntitiesDefinition getEntities()
Specifies the list of resources and their associated attributes that Verified Permissions can examine when evaluating the policies.
You can include only resource and action entities in this parameter; you can't include principals.
The IsAuthorizedWithToken
operation takes principal attributes from only the
identityToken
or accessToken
passed to the operation.
For action entities, you can include only their Identifier
and EntityType
.
You can include only resource and action entities in this parameter; you can't include principals.
The IsAuthorizedWithToken
operation takes principal attributes from only the
identityToken
or accessToken
passed to the operation.
For action entities, you can include only their Identifier
and EntityType
.
public IsAuthorizedWithTokenRequest withEntities(EntitiesDefinition entities)
Specifies the list of resources and their associated attributes that Verified Permissions can examine when evaluating the policies.
You can include only resource and action entities in this parameter; you can't include principals.
The IsAuthorizedWithToken
operation takes principal attributes from only the
identityToken
or accessToken
passed to the operation.
For action entities, you can include only their Identifier
and EntityType
.
entities
- Specifies the list of resources and their associated attributes that Verified Permissions can examine when
evaluating the policies. You can include only resource and action entities in this parameter; you can't include principals.
The IsAuthorizedWithToken
operation takes principal attributes from only the
identityToken
or accessToken
passed to the operation.
For action entities, you can include only their Identifier
and EntityType
.
public String toString()
toString
in class Object
Object.toString()
public IsAuthorizedWithTokenRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()