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 StringgetHostName()Return the host name to use in the redirect request.StringgetHttpRedirectCode()Return the HTTP code to use in the redirect response.Stringgetprotocol()Return the protocol to use in the redirect request.StringgetReplaceKeyPrefixWith()Return the object prefix key to use in the redirect request.StringgetReplaceKeyWith()Return the specific key to use in the redirect request.voidsetHostName(String hostName)Set the host name to use in the redirect request.voidsetHttpRedirectCode(String httpRedirectCode)Set the HTTP code to use in the redirect response.voidsetProtocol(String protocol)Set the protocol to use in the redirect request.voidsetReplaceKeyPrefixWith(String replaceKeyPrefixWith)Set the object prefix key to use in the redirect request.voidsetReplaceKeyWith(String replaceKeyWith)Set the specific key to use in the redirect request.RedirectRulewithHostName(String hostName)Set the host name to use in the redirect request and returns a reference to this object(RoutingRuleRedirect) for method chaining.RedirectRulewithHttpRedirectCode(String httpRedirectCode)Set the HTTP code to use in the redirect response and returns a reference to this object(RoutingRuleRedirect) for method chaining.RedirectRulewithProtocol(String protocol)Set the protocol to use in the redirect request and and returns a reference to this object(RoutingRuleRedirect) for method chaining.RedirectRulewithReplaceKeyPrefixWith(String replaceKeyPrefixWith)Set the object prefix key to use in the redirect request and returns a reference to this object(RoutingRuleRedirect) for method chaining.RedirectRulewithReplaceKeyWith(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.
-
-