Class BucketWebsiteConfigurationRoutingRuleRedirect


  • public final class BucketWebsiteConfigurationRoutingRuleRedirect
    extends java.lang.Object
    • Method Detail

      • hostName

        public java.util.Optional<java.lang.String> hostName()
        Returns:
        Host name to use in the redirect request.
      • httpRedirectCode

        public java.util.Optional<java.lang.String> httpRedirectCode()
        Returns:
        HTTP redirect code to use on the response.
      • protocol

        public java.util.Optional<java.lang.String> protocol()
        Returns:
        Protocol to use when redirecting requests. The default is the protocol that is used in the original request. Valid values: `http`, `https`.
      • replaceKeyPrefixWith

        public java.util.Optional<java.lang.String> replaceKeyPrefixWith()
        Returns:
        Object key prefix to use in the redirect request. For example, to redirect requests for all pages with prefix `docs/` (objects in the `docs/` folder) to `documents/`, you can set a `condition` block with `keyPrefixEquals` set to `docs/` and in the `redirect` set `replaceKeyPrefixWith` to `/documents`.
      • replaceKeyWith

        public java.util.Optional<java.lang.String> replaceKeyWith()
        Returns:
        Specific object key to use in the redirect request. For example, redirect request to `error.html`.