@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CustomRule extends Object implements Serializable, Cloneable, StructuredPojo
Describes a custom rewrite or redirect rule.
Constructor and Description |
---|
CustomRule() |
Modifier and Type | Method and Description |
---|---|
CustomRule |
clone() |
boolean |
equals(Object obj) |
String |
getCondition()
The condition for a URL rewrite or redirect rule, such as a country code.
|
String |
getSource()
The source pattern for a URL rewrite or redirect rule.
|
String |
getStatus()
The status code for a URL rewrite or redirect rule.
|
String |
getTarget()
The target pattern for a URL rewrite or redirect rule.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCondition(String condition)
The condition for a URL rewrite or redirect rule, such as a country code.
|
void |
setSource(String source)
The source pattern for a URL rewrite or redirect rule.
|
void |
setStatus(String status)
The status code for a URL rewrite or redirect rule.
|
void |
setTarget(String target)
The target pattern for a URL rewrite or redirect rule.
|
String |
toString()
Returns a string representation of this object.
|
CustomRule |
withCondition(String condition)
The condition for a URL rewrite or redirect rule, such as a country code.
|
CustomRule |
withSource(String source)
The source pattern for a URL rewrite or redirect rule.
|
CustomRule |
withStatus(String status)
The status code for a URL rewrite or redirect rule.
|
CustomRule |
withTarget(String target)
The target pattern for a URL rewrite or redirect rule.
|
public void setSource(String source)
The source pattern for a URL rewrite or redirect rule.
source
- The source pattern for a URL rewrite or redirect rule.public String getSource()
The source pattern for a URL rewrite or redirect rule.
public CustomRule withSource(String source)
The source pattern for a URL rewrite or redirect rule.
source
- The source pattern for a URL rewrite or redirect rule.public void setTarget(String target)
The target pattern for a URL rewrite or redirect rule.
target
- The target pattern for a URL rewrite or redirect rule.public String getTarget()
The target pattern for a URL rewrite or redirect rule.
public CustomRule withTarget(String target)
The target pattern for a URL rewrite or redirect rule.
target
- The target pattern for a URL rewrite or redirect rule.public void setStatus(String status)
The status code for a URL rewrite or redirect rule.
Represents a 200 rewrite rule.
Represents a 301 (moved permanently) 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.
status
- The status code for a URL rewrite or redirect rule.
Represents a 200 rewrite rule.
Represents a 301 (moved permanently) 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 String getStatus()
The status code for a URL rewrite or redirect rule.
Represents a 200 rewrite rule.
Represents a 301 (moved permanently) 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 permanently) 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 CustomRule withStatus(String status)
The status code for a URL rewrite or redirect rule.
Represents a 200 rewrite rule.
Represents a 301 (moved permanently) 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.
status
- The status code for a URL rewrite or redirect rule.
Represents a 200 rewrite rule.
Represents a 301 (moved permanently) 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 void setCondition(String condition)
The condition for a URL rewrite or redirect rule, such as a country code.
condition
- The condition for a URL rewrite or redirect rule, such as a country code.public String getCondition()
The condition for a URL rewrite or redirect rule, such as a country code.
public CustomRule withCondition(String condition)
The condition for a URL rewrite or redirect rule, such as a country code.
condition
- The condition for a URL rewrite or redirect rule, such as a country code.public String toString()
toString
in class Object
Object.toString()
public CustomRule clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.