@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AuthResult extends Object implements Serializable, Cloneable, StructuredPojo
The authorizer result.
Constructor and Description |
---|
AuthResult() |
Modifier and Type | Method and Description |
---|---|
AuthResult |
clone() |
boolean |
equals(Object obj) |
Allowed |
getAllowed()
The policies and statements that allowed the specified action.
|
String |
getAuthDecision()
The final authorization decision of this scenario.
|
AuthInfo |
getAuthInfo()
Authorization information.
|
Denied |
getDenied()
The policies and statements that denied the specified action.
|
List<String> |
getMissingContextValues()
Contains any missing context values found while evaluating policy.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAllowed(Allowed allowed)
The policies and statements that allowed the specified action.
|
void |
setAuthDecision(String authDecision)
The final authorization decision of this scenario.
|
void |
setAuthInfo(AuthInfo authInfo)
Authorization information.
|
void |
setDenied(Denied denied)
The policies and statements that denied the specified action.
|
void |
setMissingContextValues(Collection<String> missingContextValues)
Contains any missing context values found while evaluating policy.
|
String |
toString()
Returns a string representation of this object.
|
AuthResult |
withAllowed(Allowed allowed)
The policies and statements that allowed the specified action.
|
AuthResult |
withAuthDecision(AuthDecision authDecision)
The final authorization decision of this scenario.
|
AuthResult |
withAuthDecision(String authDecision)
The final authorization decision of this scenario.
|
AuthResult |
withAuthInfo(AuthInfo authInfo)
Authorization information.
|
AuthResult |
withDenied(Denied denied)
The policies and statements that denied the specified action.
|
AuthResult |
withMissingContextValues(Collection<String> missingContextValues)
Contains any missing context values found while evaluating policy.
|
AuthResult |
withMissingContextValues(String... missingContextValues)
Contains any missing context values found while evaluating policy.
|
public void setAuthInfo(AuthInfo authInfo)
Authorization information.
authInfo
- Authorization information.public AuthInfo getAuthInfo()
Authorization information.
public AuthResult withAuthInfo(AuthInfo authInfo)
Authorization information.
authInfo
- Authorization information.public void setAllowed(Allowed allowed)
The policies and statements that allowed the specified action.
allowed
- The policies and statements that allowed the specified action.public Allowed getAllowed()
The policies and statements that allowed the specified action.
public AuthResult withAllowed(Allowed allowed)
The policies and statements that allowed the specified action.
allowed
- The policies and statements that allowed the specified action.public void setDenied(Denied denied)
The policies and statements that denied the specified action.
denied
- The policies and statements that denied the specified action.public Denied getDenied()
The policies and statements that denied the specified action.
public AuthResult withDenied(Denied denied)
The policies and statements that denied the specified action.
denied
- The policies and statements that denied the specified action.public void setAuthDecision(String authDecision)
The final authorization decision of this scenario. Multiple statements are taken into account when determining the authorization decision. An explicit deny statement can override multiple allow statements.
authDecision
- The final authorization decision of this scenario. Multiple statements are taken into account when
determining the authorization decision. An explicit deny statement can override multiple allow statements.AuthDecision
public String getAuthDecision()
The final authorization decision of this scenario. Multiple statements are taken into account when determining the authorization decision. An explicit deny statement can override multiple allow statements.
AuthDecision
public AuthResult withAuthDecision(String authDecision)
The final authorization decision of this scenario. Multiple statements are taken into account when determining the authorization decision. An explicit deny statement can override multiple allow statements.
authDecision
- The final authorization decision of this scenario. Multiple statements are taken into account when
determining the authorization decision. An explicit deny statement can override multiple allow statements.AuthDecision
public AuthResult withAuthDecision(AuthDecision authDecision)
The final authorization decision of this scenario. Multiple statements are taken into account when determining the authorization decision. An explicit deny statement can override multiple allow statements.
authDecision
- The final authorization decision of this scenario. Multiple statements are taken into account when
determining the authorization decision. An explicit deny statement can override multiple allow statements.AuthDecision
public List<String> getMissingContextValues()
Contains any missing context values found while evaluating policy.
public void setMissingContextValues(Collection<String> missingContextValues)
Contains any missing context values found while evaluating policy.
missingContextValues
- Contains any missing context values found while evaluating policy.public AuthResult withMissingContextValues(String... missingContextValues)
Contains any missing context values found while evaluating policy.
NOTE: This method appends the values to the existing list (if any). Use
setMissingContextValues(java.util.Collection)
or withMissingContextValues(java.util.Collection)
if you want to override the existing values.
missingContextValues
- Contains any missing context values found while evaluating policy.public AuthResult withMissingContextValues(Collection<String> missingContextValues)
Contains any missing context values found while evaluating policy.
missingContextValues
- Contains any missing context values found while evaluating policy.public String toString()
toString
in class Object
Object.toString()
public AuthResult clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.