Package com.amazonaws.services.s3.model
Class RedirectRule
java.lang.Object
com.amazonaws.services.s3.model.RedirectRule
- All Implemented Interfaces:
Serializable
Container for redirect information. You can redirect requests to another
host, to another page, or with another protocol. In the event of an error,
you can can specify a different error code to return.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the host name to use in the redirect request.Return the HTTP code to use in the redirect response.Return the protocol to use in the redirect request.Return the object prefix key to use in the redirect request.Return the specific key to use in the redirect request.void
setHostName
(String hostName) Set the host name to use in the redirect request.void
setHttpRedirectCode
(String httpRedirectCode) Set the HTTP code to use in the redirect response.void
setProtocol
(String protocol) Set the protocol to use in the redirect request.void
setReplaceKeyPrefixWith
(String replaceKeyPrefixWith) Set the object prefix key to use in the redirect request.void
setReplaceKeyWith
(String replaceKeyWith) Set the specific key to use in the redirect request.withHostName
(String hostName) Set the host name to use in the redirect request and returns a reference to this object(RoutingRuleRedirect) for method chaining.withHttpRedirectCode
(String httpRedirectCode) Set the HTTP code to use in the redirect response and returns a reference to this object(RoutingRuleRedirect) for method chaining.withProtocol
(String protocol) Set the protocol to use in the redirect request and and returns a reference to this object(RoutingRuleRedirect) for method chaining.withReplaceKeyPrefixWith
(String replaceKeyPrefixWith) Set the object prefix key to use in the redirect request and returns a reference to this object(RoutingRuleRedirect) for method chaining.withReplaceKeyWith
(String replaceKeyWith) Set the specific key to use in the redirect request and returns a reference to this object(RoutingRuleRedirect) for method chaining.
-
Constructor Details
-
RedirectRule
public RedirectRule()
-
-
Method Details
-
setProtocol
Set the protocol to use in the redirect request. -
getprotocol
Return the protocol to use in the redirect request. -
withProtocol
Set the protocol to use in the redirect request and and returns a reference to this object(RoutingRuleRedirect) for method chaining. -
setHostName
Set the host name to use in the redirect request. -
getHostName
Return the host name to use in the redirect request. -
withHostName
Set the host name to use in the redirect request and returns a reference to this object(RoutingRuleRedirect) for method chaining. -
setReplaceKeyPrefixWith
Set the object prefix key to use in the redirect request. -
getReplaceKeyPrefixWith
Return the object prefix key to use in the redirect request. -
withReplaceKeyPrefixWith
Set the object prefix key to use in the redirect request and returns a reference to this object(RoutingRuleRedirect) for method chaining. -
setReplaceKeyWith
Set the specific key to use in the redirect request. -
getReplaceKeyWith
Return the specific key to use in the redirect request. -
withReplaceKeyWith
Set the specific key to use in the redirect request and returns a reference to this object(RoutingRuleRedirect) for method chaining. -
setHttpRedirectCode
Set the HTTP code to use in the redirect response. -
getHttpRedirectCode
Return the HTTP code to use in the redirect response. -
withHttpRedirectCode
Set the HTTP code to use in the redirect response and returns a reference to this object(RoutingRuleRedirect) for method chaining.
-