Package com.amazonaws.services.s3.model
Class Grant
- java.lang.Object
-
- com.amazonaws.services.s3.model.Grant
-
- All Implemented Interfaces:
Serializable
public class Grant extends Object implements Serializable
Specifies a grant, consisting of one grantee and one permission.- See Also:
Grant(Grantee, Permission)
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Grant(Grantee grantee, Permission permission)
Constructs a newGrant
object using the specified grantee and permission objects.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Grantee
getGrantee()
Gets the grantee being granted a permission by this grant.Permission
getPermission()
Gets the permission being granted to the grantee by this grant.int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
Grant
public Grant(Grantee grantee, Permission permission)
Constructs a newGrant
object using the specified grantee and permission objects.- Parameters:
grantee
- The grantee being granted a permission by this grant.permission
- The permission being granted to the grantee by this grant.
-
-
Method Detail
-
getGrantee
public Grantee getGrantee()
Gets the grantee being granted a permission by this grant.- Returns:
- The grantee being granted a permission by this grant.
- See Also:
getPermission()
-
getPermission
public Permission getPermission()
Gets the permission being granted to the grantee by this grant.- Returns:
- The permission being granted to the grantee by this grant.
- See Also:
getGrantee()
-
-