@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RateLimitLabelNamespace extends Object implements Serializable, Cloneable, StructuredPojo
Specifies a label namespace to use as an aggregate key for a rate-based rule. Each distinct fully qualified label name that has the specified label namespace contributes to the aggregation instance. If you use just one label namespace as your custom key, then each label name fully defines an aggregation instance.
This uses only labels that have been added to the request by rules that are evaluated before this rate-based rule in the web ACL.
For information about label namespaces and names, see Label syntax and naming requirements in the WAF Developer Guide.
Constructor and Description |
---|
RateLimitLabelNamespace() |
Modifier and Type | Method and Description |
---|---|
RateLimitLabelNamespace |
clone() |
boolean |
equals(Object obj) |
String |
getNamespace()
The namespace to use for aggregation.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setNamespace(String namespace)
The namespace to use for aggregation.
|
String |
toString()
Returns a string representation of this object.
|
RateLimitLabelNamespace |
withNamespace(String namespace)
The namespace to use for aggregation.
|
public void setNamespace(String namespace)
The namespace to use for aggregation.
namespace
- The namespace to use for aggregation.public String getNamespace()
The namespace to use for aggregation.
public RateLimitLabelNamespace withNamespace(String namespace)
The namespace to use for aggregation.
namespace
- The namespace to use for aggregation.public String toString()
toString
in class Object
Object.toString()
public RateLimitLabelNamespace clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.