@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateAccessGrantRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateAccessGrantRequest() |
Modifier and Type | Method and Description |
---|---|
CreateAccessGrantRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
AccessGrantsLocationConfiguration |
getAccessGrantsLocationConfiguration()
The configuration options of the grant location.
|
String |
getAccessGrantsLocationId()
The ID of the registered location to which you are granting access.
|
String |
getAccountId()
The ID of the Amazon Web Services account that is making this request.
|
String |
getApplicationArn()
The Amazon Resource Name (ARN) of an Amazon Web Services IAM Identity Center application associated with your
Identity Center instance.
|
Grantee |
getGrantee()
The user, group, or role 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:
|
String |
getS3PrefixType()
The type of
S3SubPrefix . |
List<Tag> |
getTags()
The Amazon Web Services resource tags that you are adding to the access grant.
|
int |
hashCode() |
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 |
setAccountId(String accountId)
The ID of the Amazon Web Services account that is making this request.
|
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 |
setGrantee(Grantee grantee)
The user, group, or role 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:
|
void |
setS3PrefixType(String s3PrefixType)
The type of
S3SubPrefix . |
void |
setTags(Collection<Tag> tags)
The Amazon Web Services resource tags that you are adding to the access grant.
|
String |
toString()
Returns a string representation of this object.
|
CreateAccessGrantRequest |
withAccessGrantsLocationConfiguration(AccessGrantsLocationConfiguration accessGrantsLocationConfiguration)
The configuration options of the grant location.
|
CreateAccessGrantRequest |
withAccessGrantsLocationId(String accessGrantsLocationId)
The ID of the registered location to which you are granting access.
|
CreateAccessGrantRequest |
withAccountId(String accountId)
The ID of the Amazon Web Services account that is making this request.
|
CreateAccessGrantRequest |
withApplicationArn(String applicationArn)
The Amazon Resource Name (ARN) of an Amazon Web Services IAM Identity Center application associated with your
Identity Center instance.
|
CreateAccessGrantRequest |
withGrantee(Grantee grantee)
The user, group, or role to which you are granting access.
|
CreateAccessGrantRequest |
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:
|
CreateAccessGrantRequest |
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:
|
CreateAccessGrantRequest |
withS3PrefixType(S3PrefixType s3PrefixType)
The type of
S3SubPrefix . |
CreateAccessGrantRequest |
withS3PrefixType(String s3PrefixType)
The type of
S3SubPrefix . |
CreateAccessGrantRequest |
withTags(Collection<Tag> tags)
The Amazon Web Services resource tags that you are adding to the access grant.
|
CreateAccessGrantRequest |
withTags(Tag... tags)
The Amazon Web Services resource tags that you are adding to the access grant.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setAccountId(String accountId)
The ID of the Amazon Web Services account that is making this request.
accountId
- The ID of the Amazon Web Services account that is making this request.public String getAccountId()
The ID of the Amazon Web Services account that is making this request.
public CreateAccessGrantRequest withAccountId(String accountId)
The ID of the Amazon Web Services account that is making this request.
accountId
- The ID of the Amazon Web Services account that is making this request.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.
If you are passing the default
location, you cannot create an access grant for the entire default
location. You must also specify a bucket or a bucket and prefix in the Subprefix
field.
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.
If you are passing the default
location, you cannot create an access grant for the entire
default location. You must also specify a bucket or a bucket and prefix in the Subprefix
field.
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.
If you are passing the default
location, you cannot create an access grant for the entire default
location. You must also specify a bucket or a bucket and prefix in the Subprefix
field.
default
to the default location
s3://
and assigns an auto-generated ID to other locations that you register.
If you are passing the default
location, you cannot create an access grant for the entire
default location. You must also specify a bucket or a bucket and prefix in the Subprefix
field.
public CreateAccessGrantRequest 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.
If you are passing the default
location, you cannot create an access grant for the entire default
location. You must also specify a bucket or a bucket and prefix in the Subprefix
field.
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.
If you are passing the default
location, you cannot create an access grant for the entire
default location. You must also specify a bucket or a bucket and prefix in the Subprefix
field.
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. It contains the S3SubPrefix
field. The grant scope is the result of appending the
subprefix to the location scope of the registered location.
accessGrantsLocationConfiguration
- The configuration options of the grant location. The grant location is the S3 path to the data to which
you are granting access. It contains the S3SubPrefix
field. The grant scope is the result of
appending the subprefix to the location scope of the registered location.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. It contains the S3SubPrefix
field. The grant scope is the result of appending the
subprefix to the location scope of the registered location.
S3SubPrefix
field. The grant scope is the result of
appending the subprefix to the location scope of the registered location.public CreateAccessGrantRequest 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. It contains the S3SubPrefix
field. The grant scope is the result of appending the
subprefix to the location scope of the registered location.
accessGrantsLocationConfiguration
- The configuration options of the grant location. The grant location is the S3 path to the data to which
you are granting access. It contains the S3SubPrefix
field. The grant scope is the result of
appending the subprefix to the location scope of the registered location.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 CreateAccessGrantRequest 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 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 CreateAccessGrantRequest 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 CreateAccessGrantRequest 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 an application ARN is included in the request to create an access grant, 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 an application ARN is included in the request to create an access grant,
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 an application ARN is included in the request to create an access grant, the grantee can only access the S3 data through this application.
public CreateAccessGrantRequest withApplicationArn(String applicationArn)
The Amazon Resource Name (ARN) of an Amazon Web Services IAM Identity Center application associated with your Identity Center instance. If an application ARN is included in the request to create an access grant, 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 an application ARN is included in the request to create an access grant,
the grantee can only access the S3 data through this application.public void setS3PrefixType(String s3PrefixType)
The type of S3SubPrefix
. The only possible value is Object
. Pass this value if the
access grant scope is an object. Do not pass this value if the access grant scope is a bucket or a bucket and a
prefix.
s3PrefixType
- The type of S3SubPrefix
. The only possible value is Object
. Pass this value if
the access grant scope is an object. Do not pass this value if the access grant scope is a bucket or a
bucket and a prefix.S3PrefixType
public String getS3PrefixType()
The type of S3SubPrefix
. The only possible value is Object
. Pass this value if the
access grant scope is an object. Do not pass this value if the access grant scope is a bucket or a bucket and a
prefix.
S3SubPrefix
. The only possible value is Object
. Pass this value if
the access grant scope is an object. Do not pass this value if the access grant scope is a bucket or a
bucket and a prefix.S3PrefixType
public CreateAccessGrantRequest withS3PrefixType(String s3PrefixType)
The type of S3SubPrefix
. The only possible value is Object
. Pass this value if the
access grant scope is an object. Do not pass this value if the access grant scope is a bucket or a bucket and a
prefix.
s3PrefixType
- The type of S3SubPrefix
. The only possible value is Object
. Pass this value if
the access grant scope is an object. Do not pass this value if the access grant scope is a bucket or a
bucket and a prefix.S3PrefixType
public CreateAccessGrantRequest withS3PrefixType(S3PrefixType s3PrefixType)
The type of S3SubPrefix
. The only possible value is Object
. Pass this value if the
access grant scope is an object. Do not pass this value if the access grant scope is a bucket or a bucket and a
prefix.
s3PrefixType
- The type of S3SubPrefix
. The only possible value is Object
. Pass this value if
the access grant scope is an object. Do not pass this value if the access grant scope is a bucket or a
bucket and a prefix.S3PrefixType
public List<Tag> getTags()
The Amazon Web Services resource tags that you are adding to the access grant. Each tag is a label consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and filter resources.
public void setTags(Collection<Tag> tags)
The Amazon Web Services resource tags that you are adding to the access grant. Each tag is a label consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and filter resources.
tags
- The Amazon Web Services resource tags that you are adding to the access grant. Each tag is a label
consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and
filter resources.public CreateAccessGrantRequest withTags(Tag... tags)
The Amazon Web Services resource tags that you are adding to the access grant. Each tag is a label consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and filter resources.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The Amazon Web Services resource tags that you are adding to the access grant. Each tag is a label
consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and
filter resources.public CreateAccessGrantRequest withTags(Collection<Tag> tags)
The Amazon Web Services resource tags that you are adding to the access grant. Each tag is a label consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and filter resources.
tags
- The Amazon Web Services resource tags that you are adding to the access grant. Each tag is a label
consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and
filter resources.public String toString()
toString
in class Object
Object.toString()
public CreateAccessGrantRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()