public static class CreatePreauthenticatedRequestDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
public CreatePreauthenticatedRequestDetails.Builder name(String name)
A user-specified name for the pre-authenticated request. Names can be helpful in managing pre-authenticated requests. Avoid entering confidential information.
name
- the value to setpublic CreatePreauthenticatedRequestDetails.Builder bucketListingAction(PreauthenticatedRequest.BucketListingAction bucketListingAction)
Specifies whether a list operation is allowed on a PAR with accessType “AnyObjectRead” or “AnyObjectReadWrite”. Deny: Prevents the user from performing a list operation. ListObjects: Authorizes the user to perform a list operation.
bucketListingAction
- the value to setpublic CreatePreauthenticatedRequestDetails.Builder objectName(String objectName)
The name of the object that is being granted access to by the pre-authenticated request. Avoid entering confidential information. The object name can be null and if so, the pre-authenticated request grants access to the entire bucket if the access type allows that. The object name can be a prefix as well, in that case pre-authenticated request grants access to all the objects within the bucket starting with that prefix provided that we have the correct access type.
objectName
- the value to setpublic CreatePreauthenticatedRequestDetails.Builder accessType(CreatePreauthenticatedRequestDetails.AccessType accessType)
The operation that can be performed on this resource.
accessType
- the value to setpublic CreatePreauthenticatedRequestDetails.Builder timeExpires(Date timeExpires)
The expiration date for the pre-authenticated request as per RFC 3339. After this date the pre-authenticated request will no longer be valid.
timeExpires
- the value to setpublic CreatePreauthenticatedRequestDetails build()
public CreatePreauthenticatedRequestDetails.Builder copy(CreatePreauthenticatedRequestDetails model)
Copyright © 2016–2024. All rights reserved.