@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class IsAuthorizedWithTokenResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
IsAuthorizedWithTokenResult() |
Modifier and Type | Method and Description |
---|---|
IsAuthorizedWithTokenResult |
clone() |
boolean |
equals(Object obj) |
String |
getDecision()
An authorization decision that indicates if the authorization request should be allowed or denied.
|
List<DeterminingPolicyItem> |
getDeterminingPolicies()
The list of determining policies used to make the authorization decision.
|
List<EvaluationErrorItem> |
getErrors()
Errors that occurred while making an authorization decision.
|
EntityIdentifier |
getPrincipal()
The identifier of the principal in the ID or access token.
|
int |
hashCode() |
void |
setDecision(String decision)
An authorization decision that indicates if the authorization request should be allowed or denied.
|
void |
setDeterminingPolicies(Collection<DeterminingPolicyItem> determiningPolicies)
The list of determining policies used to make the authorization decision.
|
void |
setErrors(Collection<EvaluationErrorItem> errors)
Errors that occurred while making an authorization decision.
|
void |
setPrincipal(EntityIdentifier principal)
The identifier of the principal in the ID or access token.
|
String |
toString()
Returns a string representation of this object.
|
IsAuthorizedWithTokenResult |
withDecision(Decision decision)
An authorization decision that indicates if the authorization request should be allowed or denied.
|
IsAuthorizedWithTokenResult |
withDecision(String decision)
An authorization decision that indicates if the authorization request should be allowed or denied.
|
IsAuthorizedWithTokenResult |
withDeterminingPolicies(Collection<DeterminingPolicyItem> determiningPolicies)
The list of determining policies used to make the authorization decision.
|
IsAuthorizedWithTokenResult |
withDeterminingPolicies(DeterminingPolicyItem... determiningPolicies)
The list of determining policies used to make the authorization decision.
|
IsAuthorizedWithTokenResult |
withErrors(Collection<EvaluationErrorItem> errors)
Errors that occurred while making an authorization decision.
|
IsAuthorizedWithTokenResult |
withErrors(EvaluationErrorItem... errors)
Errors that occurred while making an authorization decision.
|
IsAuthorizedWithTokenResult |
withPrincipal(EntityIdentifier principal)
The identifier of the principal in the ID or access token.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setDecision(String decision)
An authorization decision that indicates if the authorization request should be allowed or denied.
decision
- An authorization decision that indicates if the authorization request should be allowed or denied.Decision
public String getDecision()
An authorization decision that indicates if the authorization request should be allowed or denied.
Decision
public IsAuthorizedWithTokenResult withDecision(String decision)
An authorization decision that indicates if the authorization request should be allowed or denied.
decision
- An authorization decision that indicates if the authorization request should be allowed or denied.Decision
public IsAuthorizedWithTokenResult withDecision(Decision decision)
An authorization decision that indicates if the authorization request should be allowed or denied.
decision
- An authorization decision that indicates if the authorization request should be allowed or denied.Decision
public List<DeterminingPolicyItem> getDeterminingPolicies()
The list of determining policies used to make the authorization decision. For example, if there are multiple matching policies, where at least one is a forbid policy, then because forbid always overrides permit the forbid policies are the determining policies. If all matching policies are permit policies, then those policies are the determining policies. When no policies match and the response is the default DENY, there are no determining policies.
public void setDeterminingPolicies(Collection<DeterminingPolicyItem> determiningPolicies)
The list of determining policies used to make the authorization decision. For example, if there are multiple matching policies, where at least one is a forbid policy, then because forbid always overrides permit the forbid policies are the determining policies. If all matching policies are permit policies, then those policies are the determining policies. When no policies match and the response is the default DENY, there are no determining policies.
determiningPolicies
- The list of determining policies used to make the authorization decision. For example, if there are
multiple matching policies, where at least one is a forbid policy, then because forbid always overrides
permit the forbid policies are the determining policies. If all matching policies are permit policies,
then those policies are the determining policies. When no policies match and the response is the default
DENY, there are no determining policies.public IsAuthorizedWithTokenResult withDeterminingPolicies(DeterminingPolicyItem... determiningPolicies)
The list of determining policies used to make the authorization decision. For example, if there are multiple matching policies, where at least one is a forbid policy, then because forbid always overrides permit the forbid policies are the determining policies. If all matching policies are permit policies, then those policies are the determining policies. When no policies match and the response is the default DENY, there are no determining policies.
NOTE: This method appends the values to the existing list (if any). Use
setDeterminingPolicies(java.util.Collection)
or withDeterminingPolicies(java.util.Collection)
if you want to override the existing values.
determiningPolicies
- The list of determining policies used to make the authorization decision. For example, if there are
multiple matching policies, where at least one is a forbid policy, then because forbid always overrides
permit the forbid policies are the determining policies. If all matching policies are permit policies,
then those policies are the determining policies. When no policies match and the response is the default
DENY, there are no determining policies.public IsAuthorizedWithTokenResult withDeterminingPolicies(Collection<DeterminingPolicyItem> determiningPolicies)
The list of determining policies used to make the authorization decision. For example, if there are multiple matching policies, where at least one is a forbid policy, then because forbid always overrides permit the forbid policies are the determining policies. If all matching policies are permit policies, then those policies are the determining policies. When no policies match and the response is the default DENY, there are no determining policies.
determiningPolicies
- The list of determining policies used to make the authorization decision. For example, if there are
multiple matching policies, where at least one is a forbid policy, then because forbid always overrides
permit the forbid policies are the determining policies. If all matching policies are permit policies,
then those policies are the determining policies. When no policies match and the response is the default
DENY, there are no determining policies.public List<EvaluationErrorItem> getErrors()
Errors that occurred while making an authorization decision. For example, a policy references an entity or entity attribute that does not exist in the slice.
public void setErrors(Collection<EvaluationErrorItem> errors)
Errors that occurred while making an authorization decision. For example, a policy references an entity or entity attribute that does not exist in the slice.
errors
- Errors that occurred while making an authorization decision. For example, a policy references an entity or
entity attribute that does not exist in the slice.public IsAuthorizedWithTokenResult withErrors(EvaluationErrorItem... errors)
Errors that occurred while making an authorization decision. For example, a policy references an entity or entity attribute that does not exist in the slice.
NOTE: This method appends the values to the existing list (if any). Use
setErrors(java.util.Collection)
or withErrors(java.util.Collection)
if you want to override the
existing values.
errors
- Errors that occurred while making an authorization decision. For example, a policy references an entity or
entity attribute that does not exist in the slice.public IsAuthorizedWithTokenResult withErrors(Collection<EvaluationErrorItem> errors)
Errors that occurred while making an authorization decision. For example, a policy references an entity or entity attribute that does not exist in the slice.
errors
- Errors that occurred while making an authorization decision. For example, a policy references an entity or
entity attribute that does not exist in the slice.public void setPrincipal(EntityIdentifier principal)
The identifier of the principal in the ID or access token.
principal
- The identifier of the principal in the ID or access token.public EntityIdentifier getPrincipal()
The identifier of the principal in the ID or access token.
public IsAuthorizedWithTokenResult withPrincipal(EntityIdentifier principal)
The identifier of the principal in the ID or access token.
principal
- The identifier of the principal in the ID or access token.public String toString()
toString
in class Object
Object.toString()
public IsAuthorizedWithTokenResult clone()