@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FunctionAssociation extends Object implements Serializable, Cloneable
A CloudFront function that is associated with a cache behavior in a CloudFront distribution.
| Constructor and Description |
|---|
FunctionAssociation() |
| Modifier and Type | Method and Description |
|---|---|
FunctionAssociation |
clone() |
boolean |
equals(Object obj) |
String |
getEventType()
The event type of the function, either
viewer-request or viewer-response. |
String |
getFunctionARN()
The Amazon Resource Name (ARN) of the function.
|
int |
hashCode() |
void |
setEventType(String eventType)
The event type of the function, either
viewer-request or viewer-response. |
void |
setFunctionARN(String functionARN)
The Amazon Resource Name (ARN) of the function.
|
String |
toString()
Returns a string representation of this object.
|
FunctionAssociation |
withEventType(EventType eventType)
The event type of the function, either
viewer-request or viewer-response. |
FunctionAssociation |
withEventType(String eventType)
The event type of the function, either
viewer-request or viewer-response. |
FunctionAssociation |
withFunctionARN(String functionARN)
The Amazon Resource Name (ARN) of the function.
|
public void setFunctionARN(String functionARN)
The Amazon Resource Name (ARN) of the function.
functionARN - The Amazon Resource Name (ARN) of the function.public String getFunctionARN()
The Amazon Resource Name (ARN) of the function.
public FunctionAssociation withFunctionARN(String functionARN)
The Amazon Resource Name (ARN) of the function.
functionARN - The Amazon Resource Name (ARN) of the function.public void setEventType(String eventType)
The event type of the function, either viewer-request or viewer-response. You cannot
use origin-facing event types (origin-request and origin-response) with a CloudFront
function.
eventType - The event type of the function, either viewer-request or viewer-response. You
cannot use origin-facing event types (origin-request and origin-response) with a
CloudFront function.EventTypepublic String getEventType()
The event type of the function, either viewer-request or viewer-response. You cannot
use origin-facing event types (origin-request and origin-response) with a CloudFront
function.
viewer-request or viewer-response. You
cannot use origin-facing event types (origin-request and origin-response) with
a CloudFront function.EventTypepublic FunctionAssociation withEventType(String eventType)
The event type of the function, either viewer-request or viewer-response. You cannot
use origin-facing event types (origin-request and origin-response) with a CloudFront
function.
eventType - The event type of the function, either viewer-request or viewer-response. You
cannot use origin-facing event types (origin-request and origin-response) with a
CloudFront function.EventTypepublic FunctionAssociation withEventType(EventType eventType)
The event type of the function, either viewer-request or viewer-response. You cannot
use origin-facing event types (origin-request and origin-response) with a CloudFront
function.
eventType - The event type of the function, either viewer-request or viewer-response. You
cannot use origin-facing event types (origin-request and origin-response) with a
CloudFront function.EventTypepublic String toString()
toString in class ObjectObject.toString()public FunctionAssociation clone()