@Generated(value="software.amazon.awssdk:codegen") public final class FunctionAssociation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<FunctionAssociation.Builder,FunctionAssociation>
A CloudFront function that is associated with a cache behavior in a CloudFront distribution.
| Modifier and Type | Class and Description |
|---|---|
static interface |
FunctionAssociation.Builder |
| Modifier and Type | Method and Description |
|---|---|
static FunctionAssociation.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
EventType |
eventType()
The event type of the function, either
viewer-request or viewer-response. |
String |
eventTypeAsString()
The event type of the function, either
viewer-request or viewer-response. |
String |
functionARN()
The Amazon Resource Name (ARN) of the function.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends FunctionAssociation.Builder> |
serializableBuilderClass() |
FunctionAssociation.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String functionARN()
The Amazon Resource Name (ARN) of the function.
public final 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.
If the service returns an enum value that is not available in the current SDK version, eventType will
return EventType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
eventTypeAsString().
viewer-request or viewer-response. You
cannot use origin-facing event types (origin-request and origin-response) with
a CloudFront function.EventTypepublic final String eventTypeAsString()
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.
If the service returns an enum value that is not available in the current SDK version, eventType will
return EventType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
eventTypeAsString().
viewer-request or viewer-response. You
cannot use origin-facing event types (origin-request and origin-response) with
a CloudFront function.EventTypepublic FunctionAssociation.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<FunctionAssociation.Builder,FunctionAssociation>public static FunctionAssociation.Builder builder()
public static Class<? extends FunctionAssociation.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.