@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LambdaFunctionAssociations extends Object implements Serializable, Cloneable
A complex type that specifies a list of Lambda@Edge functions associations for a cache behavior.
If you want to invoke one or more Lambda@Edge functions triggered by requests that match the PathPattern
of the cache behavior, specify the applicable values for Quantity
and Items
. Note that
there can be up to 4 LambdaFunctionAssociation
items in this list (one for each possible value of
EventType
) and each EventType
can be associated with only one function.
If you don't want to invoke any Lambda@Edge functions for the requests that match PathPattern
, specify
0
for Quantity
and omit Items
.
Constructor and Description |
---|
LambdaFunctionAssociations() |
Modifier and Type | Method and Description |
---|---|
LambdaFunctionAssociations |
clone() |
boolean |
equals(Object obj) |
List<LambdaFunctionAssociation> |
getItems()
Optional: A complex type that contains
LambdaFunctionAssociation items for this cache
behavior. |
Integer |
getQuantity()
The number of Lambda@Edge function associations for this cache behavior.
|
int |
hashCode() |
void |
setItems(Collection<LambdaFunctionAssociation> items)
Optional: A complex type that contains
LambdaFunctionAssociation items for this cache
behavior. |
void |
setQuantity(Integer quantity)
The number of Lambda@Edge function associations for this cache behavior.
|
String |
toString()
Returns a string representation of this object.
|
LambdaFunctionAssociations |
withItems(Collection<LambdaFunctionAssociation> items)
Optional: A complex type that contains
LambdaFunctionAssociation items for this cache
behavior. |
LambdaFunctionAssociations |
withItems(LambdaFunctionAssociation... items)
Optional: A complex type that contains
LambdaFunctionAssociation items for this cache
behavior. |
LambdaFunctionAssociations |
withQuantity(Integer quantity)
The number of Lambda@Edge function associations for this cache behavior.
|
public void setQuantity(Integer quantity)
The number of Lambda@Edge function associations for this cache behavior.
quantity
- The number of Lambda@Edge function associations for this cache behavior.public Integer getQuantity()
The number of Lambda@Edge function associations for this cache behavior.
public LambdaFunctionAssociations withQuantity(Integer quantity)
The number of Lambda@Edge function associations for this cache behavior.
quantity
- The number of Lambda@Edge function associations for this cache behavior.public List<LambdaFunctionAssociation> getItems()
Optional: A complex type that contains LambdaFunctionAssociation
items for this cache
behavior. If Quantity
is 0
, you can omit Items
.
LambdaFunctionAssociation
items for this cache
behavior. If Quantity
is 0
, you can omit Items
.public void setItems(Collection<LambdaFunctionAssociation> items)
Optional: A complex type that contains LambdaFunctionAssociation
items for this cache
behavior. If Quantity
is 0
, you can omit Items
.
items
- Optional: A complex type that contains LambdaFunctionAssociation
items for this cache
behavior. If Quantity
is 0
, you can omit Items
.public LambdaFunctionAssociations withItems(LambdaFunctionAssociation... items)
Optional: A complex type that contains LambdaFunctionAssociation
items for this cache
behavior. If Quantity
is 0
, you can omit Items
.
NOTE: This method appends the values to the existing list (if any). Use
setItems(java.util.Collection)
or withItems(java.util.Collection)
if you want to override the
existing values.
items
- Optional: A complex type that contains LambdaFunctionAssociation
items for this cache
behavior. If Quantity
is 0
, you can omit Items
.public LambdaFunctionAssociations withItems(Collection<LambdaFunctionAssociation> items)
Optional: A complex type that contains LambdaFunctionAssociation
items for this cache
behavior. If Quantity
is 0
, you can omit Items
.
items
- Optional: A complex type that contains LambdaFunctionAssociation
items for this cache
behavior. If Quantity
is 0
, you can omit Items
.public String toString()
toString
in class Object
Object.toString()
public LambdaFunctionAssociations clone()