@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateAccessGrantResult extends AmazonWebServiceResult<S3ControlResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
CreateAccessGrantResult() |
Modifier and Type | Method and Description |
---|---|
CreateAccessGrantResult |
clone() |
boolean |
equals(Object obj) |
String |
getAccessGrantArn()
The Amazon Resource Name (ARN) of the access grant.
|
String |
getAccessGrantId()
The ID of the access grant.
|
AccessGrantsLocationConfiguration |
getAccessGrantsLocationConfiguration()
The configuration options of the grant location.
|
String |
getAccessGrantsLocationId()
The ID of the registered location to which you are granting access.
|
String |
getApplicationArn()
The Amazon Resource Name (ARN) of an Amazon Web Services IAM Identity Center application associated with your
Identity Center instance.
|
Date |
getCreatedAt()
The date and time when you created the access grant.
|
Grantee |
getGrantee()
The user, group, or role to which you are granting access.
|
String |
getGrantScope()
The S3 path of the data to which you are granting access.
|
String |
getPermission()
The type of access that you are granting to your S3 data, which can be set to one of the following values:
|
int |
hashCode() |
void |
setAccessGrantArn(String accessGrantArn)
The Amazon Resource Name (ARN) of the access grant.
|
void |
setAccessGrantId(String accessGrantId)
The ID of the access grant.
|
void |
setAccessGrantsLocationConfiguration(AccessGrantsLocationConfiguration accessGrantsLocationConfiguration)
The configuration options of the grant location.
|
void |
setAccessGrantsLocationId(String accessGrantsLocationId)
The ID of the registered location to which you are granting access.
|
void |
setApplicationArn(String applicationArn)
The Amazon Resource Name (ARN) of an Amazon Web Services IAM Identity Center application associated with your
Identity Center instance.
|
void |
setCreatedAt(Date createdAt)
The date and time when you created the access grant.
|
void |
setGrantee(Grantee grantee)
The user, group, or role to which you are granting access.
|
void |
setGrantScope(String grantScope)
The S3 path of the data to which you are granting access.
|
void |
setPermission(String permission)
The type of access that you are granting to your S3 data, which can be set to one of the following values:
|
String |
toString()
Returns a string representation of this object.
|
CreateAccessGrantResult |
withAccessGrantArn(String accessGrantArn)
The Amazon Resource Name (ARN) of the access grant.
|
CreateAccessGrantResult |
withAccessGrantId(String accessGrantId)
The ID of the access grant.
|
CreateAccessGrantResult |
withAccessGrantsLocationConfiguration(AccessGrantsLocationConfiguration accessGrantsLocationConfiguration)
The configuration options of the grant location.
|
CreateAccessGrantResult |
withAccessGrantsLocationId(String accessGrantsLocationId)
The ID of the registered location to which you are granting access.
|
CreateAccessGrantResult |
withApplicationArn(String applicationArn)
The Amazon Resource Name (ARN) of an Amazon Web Services IAM Identity Center application associated with your
Identity Center instance.
|
CreateAccessGrantResult |
withCreatedAt(Date createdAt)
The date and time when you created the access grant.
|
CreateAccessGrantResult |
withGrantee(Grantee grantee)
The user, group, or role to which you are granting access.
|
CreateAccessGrantResult |
withGrantScope(String grantScope)
The S3 path of the data to which you are granting access.
|
CreateAccessGrantResult |
withPermission(Permission permission)
The type of access that you are granting to your S3 data, which can be set to one of the following values:
|
CreateAccessGrantResult |
withPermission(String permission)
The type of access that you are granting to your S3 data, which can be set to one of the following values:
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setCreatedAt(Date createdAt)
The date and time when you created the access grant.
createdAt
- The date and time when you created the access grant.public Date getCreatedAt()
The date and time when you created the access grant.
public CreateAccessGrantResult withCreatedAt(Date createdAt)
The date and time when you created the access grant.
createdAt
- The date and time when you created the access grant.public void setAccessGrantId(String accessGrantId)
The ID of the access grant. S3 Access Grants auto-generates this ID when you create the access grant.
accessGrantId
- The ID of the access grant. S3 Access Grants auto-generates this ID when you create the access grant.public String getAccessGrantId()
The ID of the access grant. S3 Access Grants auto-generates this ID when you create the access grant.
public CreateAccessGrantResult withAccessGrantId(String accessGrantId)
The ID of the access grant. S3 Access Grants auto-generates this ID when you create the access grant.
accessGrantId
- The ID of the access grant. S3 Access Grants auto-generates this ID when you create the access grant.public void setAccessGrantArn(String accessGrantArn)
The Amazon Resource Name (ARN) of the access grant.
accessGrantArn
- The Amazon Resource Name (ARN) of the access grant.public String getAccessGrantArn()
The Amazon Resource Name (ARN) of the access grant.
public CreateAccessGrantResult withAccessGrantArn(String accessGrantArn)
The Amazon Resource Name (ARN) of the access grant.
accessGrantArn
- The Amazon Resource Name (ARN) of the access grant.public void setGrantee(Grantee grantee)
The user, group, or role to which you are granting access. You can grant access to an IAM user or role. If you have added your corporate directory to Amazon Web Services IAM Identity Center and associated your Identity Center instance with your S3 Access Grants instance, the grantee can also be a corporate directory user or group.
grantee
- The user, group, or role to which you are granting access. You can grant access to an IAM user or role. If
you have added your corporate directory to Amazon Web Services IAM Identity Center and associated your
Identity Center instance with your S3 Access Grants instance, the grantee can also be a corporate
directory user or group.public Grantee getGrantee()
The user, group, or role to which you are granting access. You can grant access to an IAM user or role. If you have added your corporate directory to Amazon Web Services IAM Identity Center and associated your Identity Center instance with your S3 Access Grants instance, the grantee can also be a corporate directory user or group.
public CreateAccessGrantResult withGrantee(Grantee grantee)
The user, group, or role to which you are granting access. You can grant access to an IAM user or role. If you have added your corporate directory to Amazon Web Services IAM Identity Center and associated your Identity Center instance with your S3 Access Grants instance, the grantee can also be a corporate directory user or group.
grantee
- The user, group, or role to which you are granting access. You can grant access to an IAM user or role. If
you have added your corporate directory to Amazon Web Services IAM Identity Center and associated your
Identity Center instance with your S3 Access Grants instance, the grantee can also be a corporate
directory user or group.public void setAccessGrantsLocationId(String accessGrantsLocationId)
The ID of the registered location to which you are granting access. S3 Access Grants assigns this ID when you
register the location. S3 Access Grants assigns the ID default
to the default location
s3://
and assigns an auto-generated ID to other locations that you register.
accessGrantsLocationId
- The ID of the registered location to which you are granting access. S3 Access Grants assigns this ID when
you register the location. S3 Access Grants assigns the ID default
to the default location
s3://
and assigns an auto-generated ID to other locations that you register.public String getAccessGrantsLocationId()
The ID of the registered location to which you are granting access. S3 Access Grants assigns this ID when you
register the location. S3 Access Grants assigns the ID default
to the default location
s3://
and assigns an auto-generated ID to other locations that you register.
default
to the default location
s3://
and assigns an auto-generated ID to other locations that you register.public CreateAccessGrantResult withAccessGrantsLocationId(String accessGrantsLocationId)
The ID of the registered location to which you are granting access. S3 Access Grants assigns this ID when you
register the location. S3 Access Grants assigns the ID default
to the default location
s3://
and assigns an auto-generated ID to other locations that you register.
accessGrantsLocationId
- The ID of the registered location to which you are granting access. S3 Access Grants assigns this ID when
you register the location. S3 Access Grants assigns the ID default
to the default location
s3://
and assigns an auto-generated ID to other locations that you register.public void setAccessGrantsLocationConfiguration(AccessGrantsLocationConfiguration accessGrantsLocationConfiguration)
The configuration options of the grant location. The grant location is the S3 path to the data to which you are granting access.
accessGrantsLocationConfiguration
- The configuration options of the grant location. The grant location is the S3 path to the data to which
you are granting access.public AccessGrantsLocationConfiguration getAccessGrantsLocationConfiguration()
The configuration options of the grant location. The grant location is the S3 path to the data to which you are granting access.
public CreateAccessGrantResult withAccessGrantsLocationConfiguration(AccessGrantsLocationConfiguration accessGrantsLocationConfiguration)
The configuration options of the grant location. The grant location is the S3 path to the data to which you are granting access.
accessGrantsLocationConfiguration
- The configuration options of the grant location. The grant location is the S3 path to the data to which
you are granting access.public void setPermission(String permission)
The type of access that you are granting to your S3 data, which can be set to one of the following values:
READ
– Grant read-only access to the S3 data.
WRITE
– Grant write-only access to the S3 data.
READWRITE
– Grant both read and write access to the S3 data.
permission
- The type of access that you are granting to your S3 data, which can be set to one of the following
values:
READ
– Grant read-only access to the S3 data.
WRITE
– Grant write-only access to the S3 data.
READWRITE
– Grant both read and write access to the S3 data.
Permission
public String getPermission()
The type of access that you are granting to your S3 data, which can be set to one of the following values:
READ
– Grant read-only access to the S3 data.
WRITE
– Grant write-only access to the S3 data.
READWRITE
– Grant both read and write access to the S3 data.
READ
– Grant read-only access to the S3 data.
WRITE
– Grant write-only access to the S3 data.
READWRITE
– Grant both read and write access to the S3 data.
Permission
public CreateAccessGrantResult withPermission(String permission)
The type of access that you are granting to your S3 data, which can be set to one of the following values:
READ
– Grant read-only access to the S3 data.
WRITE
– Grant write-only access to the S3 data.
READWRITE
– Grant both read and write access to the S3 data.
permission
- The type of access that you are granting to your S3 data, which can be set to one of the following
values:
READ
– Grant read-only access to the S3 data.
WRITE
– Grant write-only access to the S3 data.
READWRITE
– Grant both read and write access to the S3 data.
Permission
public CreateAccessGrantResult withPermission(Permission permission)
The type of access that you are granting to your S3 data, which can be set to one of the following values:
READ
– Grant read-only access to the S3 data.
WRITE
– Grant write-only access to the S3 data.
READWRITE
– Grant both read and write access to the S3 data.
permission
- The type of access that you are granting to your S3 data, which can be set to one of the following
values:
READ
– Grant read-only access to the S3 data.
WRITE
– Grant write-only access to the S3 data.
READWRITE
– Grant both read and write access to the S3 data.
Permission
public void setApplicationArn(String applicationArn)
The Amazon Resource Name (ARN) of an Amazon Web Services IAM Identity Center application associated with your Identity Center instance. If the grant includes an application ARN, the grantee can only access the S3 data through this application.
applicationArn
- The Amazon Resource Name (ARN) of an Amazon Web Services IAM Identity Center application associated with
your Identity Center instance. If the grant includes an application ARN, the grantee can only access the
S3 data through this application.public String getApplicationArn()
The Amazon Resource Name (ARN) of an Amazon Web Services IAM Identity Center application associated with your Identity Center instance. If the grant includes an application ARN, the grantee can only access the S3 data through this application.
public CreateAccessGrantResult withApplicationArn(String applicationArn)
The Amazon Resource Name (ARN) of an Amazon Web Services IAM Identity Center application associated with your Identity Center instance. If the grant includes an application ARN, the grantee can only access the S3 data through this application.
applicationArn
- The Amazon Resource Name (ARN) of an Amazon Web Services IAM Identity Center application associated with
your Identity Center instance. If the grant includes an application ARN, the grantee can only access the
S3 data through this application.public void setGrantScope(String grantScope)
The S3 path of the data to which you are granting access. It is the result of appending the
Subprefix
to the location scope.
grantScope
- The S3 path of the data to which you are granting access. It is the result of appending the
Subprefix
to the location scope.public String getGrantScope()
The S3 path of the data to which you are granting access. It is the result of appending the
Subprefix
to the location scope.
Subprefix
to the location scope.public CreateAccessGrantResult withGrantScope(String grantScope)
The S3 path of the data to which you are granting access. It is the result of appending the
Subprefix
to the location scope.
grantScope
- The S3 path of the data to which you are granting access. It is the result of appending the
Subprefix
to the location scope.public String toString()
toString
in class Object
Object.toString()
public CreateAccessGrantResult clone()