Package com.amazonaws.services.s3.model
Class RedirectRule
- java.lang.Object
-
- com.amazonaws.services.s3.model.RedirectRule
-
- All Implemented Interfaces:
Serializable
public class RedirectRule extends Object implements 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RedirectRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getHostName()
Return the host name to use in the redirect request.String
getHttpRedirectCode()
Return the HTTP code to use in the redirect response.String
getprotocol()
Return the protocol to use in the redirect request.String
getReplaceKeyPrefixWith()
Return the object prefix key to use in the redirect request.String
getReplaceKeyWith()
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.RedirectRule
withHostName(String hostName)
Set the host name to use in the redirect request and returns a reference to this object(RoutingRuleRedirect) for method chaining.RedirectRule
withHttpRedirectCode(String httpRedirectCode)
Set the HTTP code to use in the redirect response and returns a reference to this object(RoutingRuleRedirect) for method chaining.RedirectRule
withProtocol(String protocol)
Set the protocol to use in the redirect request and and returns a reference to this object(RoutingRuleRedirect) for method chaining.RedirectRule
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.RedirectRule
withReplaceKeyWith(String replaceKeyWith)
Set the specific key to use in the redirect request and returns a reference to this object(RoutingRuleRedirect) for method chaining.
-
-
-
Method Detail
-
setProtocol
public void setProtocol(String protocol)
Set the protocol to use in the redirect request.
-
getprotocol
public String getprotocol()
Return the protocol to use in the redirect request.
-
withProtocol
public RedirectRule withProtocol(String protocol)
Set the protocol to use in the redirect request and and returns a reference to this object(RoutingRuleRedirect) for method chaining.
-
setHostName
public void setHostName(String hostName)
Set the host name to use in the redirect request.
-
getHostName
public String getHostName()
Return the host name to use in the redirect request.
-
withHostName
public RedirectRule withHostName(String hostName)
Set the host name to use in the redirect request and returns a reference to this object(RoutingRuleRedirect) for method chaining.
-
setReplaceKeyPrefixWith
public void setReplaceKeyPrefixWith(String replaceKeyPrefixWith)
Set the object prefix key to use in the redirect request.
-
getReplaceKeyPrefixWith
public String getReplaceKeyPrefixWith()
Return the object prefix key to use in the redirect request.
-
withReplaceKeyPrefixWith
public RedirectRule 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.
-
setReplaceKeyWith
public void setReplaceKeyWith(String replaceKeyWith)
Set the specific key to use in the redirect request.
-
getReplaceKeyWith
public String getReplaceKeyWith()
Return the specific key to use in the redirect request.
-
withReplaceKeyWith
public RedirectRule withReplaceKeyWith(String replaceKeyWith)
Set the specific key to use in the redirect request and returns a reference to this object(RoutingRuleRedirect) for method chaining.
-
setHttpRedirectCode
public void setHttpRedirectCode(String httpRedirectCode)
Set the HTTP code to use in the redirect response.
-
getHttpRedirectCode
public String getHttpRedirectCode()
Return the HTTP code to use in the redirect response.
-
withHttpRedirectCode
public RedirectRule withHttpRedirectCode(String httpRedirectCode)
Set the HTTP code to use in the redirect response and returns a reference to this object(RoutingRuleRedirect) for method chaining.
-
-