@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateInstruction extends Object implements Serializable, Cloneable, StructuredPojo
Contains the instructions for one Grafana role permission update in a UpdatePermissions operation.
Constructor and Description |
---|
UpdateInstruction() |
Modifier and Type | Method and Description |
---|---|
UpdateInstruction |
clone() |
boolean |
equals(Object obj) |
String |
getAction()
Specifies whether this update is to add or revoke role permissions.
|
String |
getRole()
The role to add or revoke for the user or the group specified in
users . |
List<User> |
getUsers()
A structure that specifies the user or group to add or revoke the role for.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAction(String action)
Specifies whether this update is to add or revoke role permissions.
|
void |
setRole(String role)
The role to add or revoke for the user or the group specified in
users . |
void |
setUsers(Collection<User> users)
A structure that specifies the user or group to add or revoke the role for.
|
String |
toString()
Returns a string representation of this object.
|
UpdateInstruction |
withAction(String action)
Specifies whether this update is to add or revoke role permissions.
|
UpdateInstruction |
withAction(UpdateAction action)
Specifies whether this update is to add or revoke role permissions.
|
UpdateInstruction |
withRole(Role role)
The role to add or revoke for the user or the group specified in
users . |
UpdateInstruction |
withRole(String role)
The role to add or revoke for the user or the group specified in
users . |
UpdateInstruction |
withUsers(Collection<User> users)
A structure that specifies the user or group to add or revoke the role for.
|
UpdateInstruction |
withUsers(User... users)
A structure that specifies the user or group to add or revoke the role for.
|
public void setAction(String action)
Specifies whether this update is to add or revoke role permissions.
action
- Specifies whether this update is to add or revoke role permissions.UpdateAction
public String getAction()
Specifies whether this update is to add or revoke role permissions.
UpdateAction
public UpdateInstruction withAction(String action)
Specifies whether this update is to add or revoke role permissions.
action
- Specifies whether this update is to add or revoke role permissions.UpdateAction
public UpdateInstruction withAction(UpdateAction action)
Specifies whether this update is to add or revoke role permissions.
action
- Specifies whether this update is to add or revoke role permissions.UpdateAction
public void setRole(String role)
The role to add or revoke for the user or the group specified in users
.
role
- The role to add or revoke for the user or the group specified in users
.Role
public String getRole()
The role to add or revoke for the user or the group specified in users
.
users
.Role
public UpdateInstruction withRole(String role)
The role to add or revoke for the user or the group specified in users
.
role
- The role to add or revoke for the user or the group specified in users
.Role
public UpdateInstruction withRole(Role role)
The role to add or revoke for the user or the group specified in users
.
role
- The role to add or revoke for the user or the group specified in users
.Role
public List<User> getUsers()
A structure that specifies the user or group to add or revoke the role for.
public void setUsers(Collection<User> users)
A structure that specifies the user or group to add or revoke the role for.
users
- A structure that specifies the user or group to add or revoke the role for.public UpdateInstruction withUsers(User... users)
A structure that specifies the user or group to add or revoke the role for.
NOTE: This method appends the values to the existing list (if any). Use
setUsers(java.util.Collection)
or withUsers(java.util.Collection)
if you want to override the
existing values.
users
- A structure that specifies the user or group to add or revoke the role for.public UpdateInstruction withUsers(Collection<User> users)
A structure that specifies the user or group to add or revoke the role for.
users
- A structure that specifies the user or group to add or revoke the role for.public String toString()
toString
in class Object
Object.toString()
public UpdateInstruction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.