@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Grant extends Object implements Serializable, Cloneable, StructuredPojo
Describes a grant.
Constructor and Description |
---|
Grant() |
Modifier and Type | Method and Description |
---|---|
Grant |
clone() |
boolean |
equals(Object obj) |
String |
getGrantArn()
Amazon Resource Name (ARN) of the grant.
|
List<String> |
getGrantedOperations()
Granted operations.
|
String |
getGranteePrincipalArn()
The grantee principal ARN.
|
String |
getGrantName()
Grant name.
|
String |
getGrantStatus()
Grant status.
|
String |
getHomeRegion()
Home Region of the grant.
|
String |
getLicenseArn()
License ARN.
|
Options |
getOptions()
The options specified for the grant.
|
String |
getParentArn()
Parent ARN.
|
String |
getStatusReason()
Grant status reason.
|
String |
getVersion()
Grant version.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setGrantArn(String grantArn)
Amazon Resource Name (ARN) of the grant.
|
void |
setGrantedOperations(Collection<String> grantedOperations)
Granted operations.
|
void |
setGranteePrincipalArn(String granteePrincipalArn)
The grantee principal ARN.
|
void |
setGrantName(String grantName)
Grant name.
|
void |
setGrantStatus(String grantStatus)
Grant status.
|
void |
setHomeRegion(String homeRegion)
Home Region of the grant.
|
void |
setLicenseArn(String licenseArn)
License ARN.
|
void |
setOptions(Options options)
The options specified for the grant.
|
void |
setParentArn(String parentArn)
Parent ARN.
|
void |
setStatusReason(String statusReason)
Grant status reason.
|
void |
setVersion(String version)
Grant version.
|
String |
toString()
Returns a string representation of this object.
|
Grant |
withGrantArn(String grantArn)
Amazon Resource Name (ARN) of the grant.
|
Grant |
withGrantedOperations(AllowedOperation... grantedOperations)
Granted operations.
|
Grant |
withGrantedOperations(Collection<String> grantedOperations)
Granted operations.
|
Grant |
withGrantedOperations(String... grantedOperations)
Granted operations.
|
Grant |
withGranteePrincipalArn(String granteePrincipalArn)
The grantee principal ARN.
|
Grant |
withGrantName(String grantName)
Grant name.
|
Grant |
withGrantStatus(GrantStatus grantStatus)
Grant status.
|
Grant |
withGrantStatus(String grantStatus)
Grant status.
|
Grant |
withHomeRegion(String homeRegion)
Home Region of the grant.
|
Grant |
withLicenseArn(String licenseArn)
License ARN.
|
Grant |
withOptions(Options options)
The options specified for the grant.
|
Grant |
withParentArn(String parentArn)
Parent ARN.
|
Grant |
withStatusReason(String statusReason)
Grant status reason.
|
Grant |
withVersion(String version)
Grant version.
|
public void setGrantArn(String grantArn)
Amazon Resource Name (ARN) of the grant.
grantArn
- Amazon Resource Name (ARN) of the grant.public String getGrantArn()
Amazon Resource Name (ARN) of the grant.
public Grant withGrantArn(String grantArn)
Amazon Resource Name (ARN) of the grant.
grantArn
- Amazon Resource Name (ARN) of the grant.public void setGrantName(String grantName)
Grant name.
grantName
- Grant name.public String getGrantName()
Grant name.
public Grant withGrantName(String grantName)
Grant name.
grantName
- Grant name.public void setParentArn(String parentArn)
Parent ARN.
parentArn
- Parent ARN.public String getParentArn()
Parent ARN.
public Grant withParentArn(String parentArn)
Parent ARN.
parentArn
- Parent ARN.public void setLicenseArn(String licenseArn)
License ARN.
licenseArn
- License ARN.public String getLicenseArn()
License ARN.
public Grant withLicenseArn(String licenseArn)
License ARN.
licenseArn
- License ARN.public void setGranteePrincipalArn(String granteePrincipalArn)
The grantee principal ARN.
granteePrincipalArn
- The grantee principal ARN.public String getGranteePrincipalArn()
The grantee principal ARN.
public Grant withGranteePrincipalArn(String granteePrincipalArn)
The grantee principal ARN.
granteePrincipalArn
- The grantee principal ARN.public void setHomeRegion(String homeRegion)
Home Region of the grant.
homeRegion
- Home Region of the grant.public String getHomeRegion()
Home Region of the grant.
public Grant withHomeRegion(String homeRegion)
Home Region of the grant.
homeRegion
- Home Region of the grant.public void setGrantStatus(String grantStatus)
Grant status.
grantStatus
- Grant status.GrantStatus
public String getGrantStatus()
Grant status.
GrantStatus
public Grant withGrantStatus(String grantStatus)
Grant status.
grantStatus
- Grant status.GrantStatus
public Grant withGrantStatus(GrantStatus grantStatus)
Grant status.
grantStatus
- Grant status.GrantStatus
public void setStatusReason(String statusReason)
Grant status reason.
statusReason
- Grant status reason.public String getStatusReason()
Grant status reason.
public Grant withStatusReason(String statusReason)
Grant status reason.
statusReason
- Grant status reason.public void setVersion(String version)
Grant version.
version
- Grant version.public String getVersion()
Grant version.
public Grant withVersion(String version)
Grant version.
version
- Grant version.public List<String> getGrantedOperations()
Granted operations.
AllowedOperation
public void setGrantedOperations(Collection<String> grantedOperations)
Granted operations.
grantedOperations
- Granted operations.AllowedOperation
public Grant withGrantedOperations(String... grantedOperations)
Granted operations.
NOTE: This method appends the values to the existing list (if any). Use
setGrantedOperations(java.util.Collection)
or withGrantedOperations(java.util.Collection)
if
you want to override the existing values.
grantedOperations
- Granted operations.AllowedOperation
public Grant withGrantedOperations(Collection<String> grantedOperations)
Granted operations.
grantedOperations
- Granted operations.AllowedOperation
public Grant withGrantedOperations(AllowedOperation... grantedOperations)
Granted operations.
grantedOperations
- Granted operations.AllowedOperation
public void setOptions(Options options)
The options specified for the grant.
options
- The options specified for the grant.public Options getOptions()
The options specified for the grant.
public Grant withOptions(Options options)
The options specified for the grant.
options
- The options specified for the grant.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.