public class AuthInfo
extends java.lang.Object
implements java.io.Serializable
A collection of authorization information.
| Constructor and Description |
|---|
AuthInfo() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getActionType()
The type of action for which the principal is being authorized.
|
java.util.List<java.lang.String> |
getResources()
The resources for which the principal is being authorized to perform the
specified action.
|
int |
hashCode() |
void |
setActionType(ActionType actionType)
The type of action for which the principal is being authorized.
|
void |
setActionType(java.lang.String actionType)
The type of action for which the principal is being authorized.
|
void |
setResources(java.util.Collection<java.lang.String> resources)
The resources for which the principal is being authorized to perform the
specified action.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AuthInfo |
withActionType(ActionType actionType)
The type of action for which the principal is being authorized.
|
AuthInfo |
withActionType(java.lang.String actionType)
The type of action for which the principal is being authorized.
|
AuthInfo |
withResources(java.util.Collection<java.lang.String> resources)
The resources for which the principal is being authorized to perform the
specified action.
|
AuthInfo |
withResources(java.lang.String... resources)
The resources for which the principal is being authorized to perform the
specified action.
|
public java.lang.String getActionType()
The type of action for which the principal is being authorized.
Constraints:
Allowed Values: PUBLISH, SUBSCRIBE, RECEIVE, CONNECT
The type of action for which the principal is being authorized.
ActionTypepublic void setActionType(java.lang.String actionType)
The type of action for which the principal is being authorized.
Constraints:
Allowed Values: PUBLISH, SUBSCRIBE, RECEIVE, CONNECT
actionType - The type of action for which the principal is being authorized.
ActionTypepublic AuthInfo withActionType(java.lang.String actionType)
The type of action for which the principal is being authorized.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: PUBLISH, SUBSCRIBE, RECEIVE, CONNECT
actionType - The type of action for which the principal is being authorized.
ActionTypepublic void setActionType(ActionType actionType)
The type of action for which the principal is being authorized.
Constraints:
Allowed Values: PUBLISH, SUBSCRIBE, RECEIVE, CONNECT
actionType - The type of action for which the principal is being authorized.
ActionTypepublic AuthInfo withActionType(ActionType actionType)
The type of action for which the principal is being authorized.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: PUBLISH, SUBSCRIBE, RECEIVE, CONNECT
actionType - The type of action for which the principal is being authorized.
ActionTypepublic java.util.List<java.lang.String> getResources()
The resources for which the principal is being authorized to perform the specified action.
The resources for which the principal is being authorized to perform the specified action.
public void setResources(java.util.Collection<java.lang.String> resources)
The resources for which the principal is being authorized to perform the specified action.
resources - The resources for which the principal is being authorized to perform the specified action.
public AuthInfo withResources(java.lang.String... resources)
The resources for which the principal is being authorized to perform the specified action.
Returns a reference to this object so that method calls can be chained together.
resources - The resources for which the principal is being authorized to perform the specified action.
public AuthInfo withResources(java.util.Collection<java.lang.String> resources)
The resources for which the principal is being authorized to perform the specified action.
Returns a reference to this object so that method calls can be chained together.
resources - The resources for which the principal is being authorized to perform the specified action.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.