Class PreauthenticatedRequest.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public PreauthenticatedRequest.Builder id​(String id)
        The unique identifier to use when directly addressing the pre-authenticated request.
        Parameters:
        id - the value to set
        Returns:
        this builder
      • accessUri

        public PreauthenticatedRequest.Builder accessUri​(String accessUri)
        The URI to embed in the URL when using the pre-authenticated request.
        Parameters:
        accessUri - the value to set
        Returns:
        this builder
      • objectName

        public PreauthenticatedRequest.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. Example: test/object1.log

        Parameters:
        objectName - the value to set
        Returns:
        this builder
      • bucketListingAction

        public PreauthenticatedRequest.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
      • timeExpires

        public PreauthenticatedRequest.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
      • timeCreated

        public PreauthenticatedRequest.Builder timeCreated​(Date timeCreated)
        The date when the pre-authenticated request was created as per specification RFC 3339.
        Parameters:
        timeCreated - the value to set
        Returns:
        this builder