@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class IsAuthorizedResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
IsAuthorizedResult() |
Modifier and Type | Method and Description |
---|---|
IsAuthorizedResult |
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, for example, a policy references an Entity or entity
Attribute that does not exist in the slice.
|
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, for example, a policy references an Entity or entity
Attribute that does not exist in the slice.
|
String |
toString()
Returns a string representation of this object.
|
IsAuthorizedResult |
withDecision(Decision decision)
An authorization decision that indicates if the authorization request should be allowed or denied.
|
IsAuthorizedResult |
withDecision(String decision)
An authorization decision that indicates if the authorization request should be allowed or denied.
|
IsAuthorizedResult |
withDeterminingPolicies(Collection<DeterminingPolicyItem> determiningPolicies)
The list of determining policies used to make the authorization decision.
|
IsAuthorizedResult |
withDeterminingPolicies(DeterminingPolicyItem... determiningPolicies)
The list of determining policies used to make the authorization decision.
|
IsAuthorizedResult |
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.
|
IsAuthorizedResult |
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.
|
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 IsAuthorizedResult 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 IsAuthorizedResult 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 two matching policies, where one is a forbid and the other is a permit, then the forbid policy will be the determining policy. In the case of multiple matching permit policies then there would be multiple determining policies. In the case that no policies match, and hence the response is DENY, there would be 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 two matching policies, where one is a forbid and the other is a permit, then the forbid policy will be the determining policy. In the case of multiple matching permit policies then there would be multiple determining policies. In the case that no policies match, and hence the response is DENY, there would be no determining policies.
determiningPolicies
- The list of determining policies used to make the authorization decision. For example, if there are two
matching policies, where one is a forbid and the other is a permit, then the forbid policy will be the
determining policy. In the case of multiple matching permit policies then there would be multiple
determining policies. In the case that no policies match, and hence the response is DENY, there would be
no determining policies.public IsAuthorizedResult withDeterminingPolicies(DeterminingPolicyItem... determiningPolicies)
The list of determining policies used to make the authorization decision. For example, if there are two matching policies, where one is a forbid and the other is a permit, then the forbid policy will be the determining policy. In the case of multiple matching permit policies then there would be multiple determining policies. In the case that no policies match, and hence the response is DENY, there would be 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 two
matching policies, where one is a forbid and the other is a permit, then the forbid policy will be the
determining policy. In the case of multiple matching permit policies then there would be multiple
determining policies. In the case that no policies match, and hence the response is DENY, there would be
no determining policies.public IsAuthorizedResult withDeterminingPolicies(Collection<DeterminingPolicyItem> determiningPolicies)
The list of determining policies used to make the authorization decision. For example, if there are two matching policies, where one is a forbid and the other is a permit, then the forbid policy will be the determining policy. In the case of multiple matching permit policies then there would be multiple determining policies. In the case that no policies match, and hence the response is DENY, there would be no determining policies.
determiningPolicies
- The list of determining policies used to make the authorization decision. For example, if there are two
matching policies, where one is a forbid and the other is a permit, then the forbid policy will be the
determining policy. In the case of multiple matching permit policies then there would be multiple
determining policies. In the case that no policies match, and hence the response is DENY, there would be
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 IsAuthorizedResult 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 IsAuthorizedResult 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 String toString()
toString
in class Object
Object.toString()
public IsAuthorizedResult clone()