@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Permission extends Object implements Serializable, Cloneable, StructuredPojo
Contains information on the permissions an account has within Amazon Inspector.
| Constructor and Description |
|---|
Permission() |
| Modifier and Type | Method and Description |
|---|---|
Permission |
clone() |
boolean |
equals(Object obj) |
String |
getOperation()
The operations that can be performed with the given permissions.
|
String |
getService()
The services that the permissions allow an account to perform the given operations for.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setOperation(String operation)
The operations that can be performed with the given permissions.
|
void |
setService(String service)
The services that the permissions allow an account to perform the given operations for.
|
String |
toString()
Returns a string representation of this object.
|
Permission |
withOperation(Operation operation)
The operations that can be performed with the given permissions.
|
Permission |
withOperation(String operation)
The operations that can be performed with the given permissions.
|
Permission |
withService(Service service)
The services that the permissions allow an account to perform the given operations for.
|
Permission |
withService(String service)
The services that the permissions allow an account to perform the given operations for.
|
public void setOperation(String operation)
The operations that can be performed with the given permissions.
operation - The operations that can be performed with the given permissions.Operationpublic String getOperation()
The operations that can be performed with the given permissions.
Operationpublic Permission withOperation(String operation)
The operations that can be performed with the given permissions.
operation - The operations that can be performed with the given permissions.Operationpublic Permission withOperation(Operation operation)
The operations that can be performed with the given permissions.
operation - The operations that can be performed with the given permissions.Operationpublic void setService(String service)
The services that the permissions allow an account to perform the given operations for.
service - The services that the permissions allow an account to perform the given operations for.Servicepublic String getService()
The services that the permissions allow an account to perform the given operations for.
Servicepublic Permission withService(String service)
The services that the permissions allow an account to perform the given operations for.
service - The services that the permissions allow an account to perform the given operations for.Servicepublic Permission withService(Service service)
The services that the permissions allow an account to perform the given operations for.
service - The services that the permissions allow an account to perform the given operations for.Servicepublic String toString()
toString in class ObjectObject.toString()public Permission clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.