@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResourceAccessPolicy extends Object implements Serializable, Cloneable, StructuredPojo
Constructor and Description |
---|
ResourceAccessPolicy() |
Modifier and Type | Method and Description |
---|---|
ResourceAccessPolicy |
clone() |
boolean |
equals(Object obj) |
String |
getPermission()
The permissions that the Lambda function has to the resource.
|
String |
getResourceId()
The ID of the resource.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setPermission(String permission)
The permissions that the Lambda function has to the resource.
|
void |
setResourceId(String resourceId)
The ID of the resource.
|
String |
toString()
Returns a string representation of this object.
|
ResourceAccessPolicy |
withPermission(Permission permission)
The permissions that the Lambda function has to the resource.
|
ResourceAccessPolicy |
withPermission(String permission)
The permissions that the Lambda function has to the resource.
|
ResourceAccessPolicy |
withResourceId(String resourceId)
The ID of the resource.
|
public void setPermission(String permission)
permission
- The permissions that the Lambda function has to the resource. Can be one of ''rw'' (read/write) or ''ro''
(read-only).Permission
public String getPermission()
Permission
public ResourceAccessPolicy withPermission(String permission)
permission
- The permissions that the Lambda function has to the resource. Can be one of ''rw'' (read/write) or ''ro''
(read-only).Permission
public ResourceAccessPolicy withPermission(Permission permission)
permission
- The permissions that the Lambda function has to the resource. Can be one of ''rw'' (read/write) or ''ro''
(read-only).Permission
public void setResourceId(String resourceId)
resourceId
- The ID of the resource. (This ID is assigned to the resource when you create the resource definiton.)public String getResourceId()
public ResourceAccessPolicy withResourceId(String resourceId)
resourceId
- The ID of the resource. (This ID is assigned to the resource when you create the resource definiton.)public String toString()
toString
in class Object
Object.toString()
public ResourceAccessPolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.