@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.Operation
public String getOperation()
The operations that can be performed with the given permissions.
Operation
public 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.Operation
public 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.Operation
public 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.Service
public String getService()
The services that the permissions allow an account to perform the given operations for.
Service
public 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.Service
public 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.Service
public String toString()
toString
in class Object
Object.toString()
public Permission clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.