Class RoutingRule
java.lang.Object
software.amazon.awssdk.services.s3.model.RoutingRule
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RoutingRule.Builder,RoutingRule>
@Generated("software.amazon.awssdk:codegen")
public final class RoutingRule
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<RoutingRule.Builder,RoutingRule>
Specifies the redirect behavior and when a redirect is applied. For more information about routing rules, see Configuring advanced conditional redirects in the Amazon S3 User Guide.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic RoutingRule.Builderbuilder()final ConditionA container for describing a condition that must be met for the specified redirect to apply.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Redirectredirect()Container for redirect information.static Class<? extends RoutingRule.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
condition
A container for describing a condition that must be met for the specified redirect to apply. For example, 1. If request is for pages in the
/docsfolder, redirect to the/documentsfolder. 2. If request results in HTTP error 4xx, redirect request to another host where you might process the error.- Returns:
- A container for describing a condition that must be met for the specified redirect to apply. For example,
1. If request is for pages in the
/docsfolder, redirect to the/documentsfolder. 2. If request results in HTTP error 4xx, redirect request to another host where you might process the error.
-
redirect
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 specify a different error code to return.
- Returns:
- 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 specify a different error code to return.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<RoutingRule.Builder,RoutingRule>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-