Class CreatePreauthenticatedRequestDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.objectstorage.model.CreatePreauthenticatedRequestDetails.Builder
-
- Enclosing class:
- CreatePreauthenticatedRequestDetails
public static class CreatePreauthenticatedRequestDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
name
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.
- Parameters:
name
- the value to set- Returns:
- this builder
-
bucketListingAction
public 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.
- Parameters:
bucketListingAction
- the value to set- Returns:
- this builder
-
objectName
public 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.
- Parameters:
objectName
- the value to set- Returns:
- this builder
-
accessType
public CreatePreauthenticatedRequestDetails.Builder accessType(CreatePreauthenticatedRequestDetails.AccessType accessType)
The operation that can be performed on this resource.- Parameters:
accessType
- the value to set- Returns:
- this builder
-
timeExpires
public 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.
- Parameters:
timeExpires
- the value to set- Returns:
- this builder
-
build
public CreatePreauthenticatedRequestDetails build()
-
copy
public CreatePreauthenticatedRequestDetails.Builder copy(CreatePreauthenticatedRequestDetails model)
-
-