public static final class FunctionAssociation.Builder
extends java.lang.Object
FunctionAssociation
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
FunctionAssociation |
build()
Builds the configured instance.
|
FunctionAssociation.Builder |
eventType(FunctionEventType eventType)
Sets the value of
FunctionAssociation.getEventType() |
FunctionAssociation.Builder |
function(IFunction function)
Sets the value of
FunctionAssociation.getFunction() |
public FunctionAssociation.Builder eventType(FunctionEventType eventType)
FunctionAssociation.getEventType()
eventType
- The type of event which should invoke the function. This parameter is required.this
public FunctionAssociation.Builder function(IFunction function)
FunctionAssociation.getFunction()
function
- The CloudFront function that will be invoked. This parameter is required.this
public FunctionAssociation build()
FunctionAssociation
java.lang.NullPointerException
- if any required attribute was not provided