@Generated(value="software.amazon.awssdk:codegen") public final class CustomRule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CustomRule.Builder,CustomRule>
Describes a custom rewrite or redirect rule.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CustomRule.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CustomRule.Builder |
builder() |
String |
condition()
The condition for a URL rewrite or redirect rule, such as a country code.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends CustomRule.Builder> |
serializableBuilderClass() |
String |
source()
The source pattern for a URL rewrite or redirect rule.
|
String |
status()
The status code for a URL rewrite or redirect rule.
|
String |
target()
The target pattern for a URL rewrite or redirect rule.
|
CustomRule.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String source()
The source pattern for a URL rewrite or redirect rule.
public final String target()
The target pattern for a URL rewrite or redirect rule.
public final String status()
The status code for a URL rewrite or redirect rule.
Represents a 200 rewrite rule.
Represents a 301 (moved pemanently) redirect rule. This and all future requests should be directed to the target URL.
Represents a 302 temporary redirect rule.
Represents a 404 redirect rule.
Represents a 404 rewrite rule.
Represents a 200 rewrite rule.
Represents a 301 (moved pemanently) redirect rule. This and all future requests should be directed to the target URL.
Represents a 302 temporary redirect rule.
Represents a 404 redirect rule.
Represents a 404 rewrite rule.
public final String condition()
The condition for a URL rewrite or redirect rule, such as a country code.
public CustomRule.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CustomRule.Builder,CustomRule>public static CustomRule.Builder builder()
public static Class<? extends CustomRule.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.