Class FunctionAssociation
- java.lang.Object
-
- software.amazon.awssdk.services.cloudfront.model.FunctionAssociation
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<FunctionAssociation.Builder,FunctionAssociation>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
FunctionAssociation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FunctionAssociation.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
EventType
eventType()
The event type of the function, eitherviewer-request
orviewer-response
.String
eventTypeAsString()
The event type of the function, eitherviewer-request
orviewer-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.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
functionARN
public final String functionARN()
The Amazon Resource Name (ARN) of the function.
- Returns:
- The Amazon Resource Name (ARN) of the function.
-
eventType
public final EventType eventType()
The event type of the function, either
viewer-request
orviewer-response
. You cannot use origin-facing event types (origin-request
andorigin-response
) with a CloudFront function.If the service returns an enum value that is not available in the current SDK version,
eventType
will returnEventType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromeventTypeAsString()
.- Returns:
- The event type of the function, either
viewer-request
orviewer-response
. You cannot use origin-facing event types (origin-request
andorigin-response
) with a CloudFront function. - See Also:
EventType
-
eventTypeAsString
public final String eventTypeAsString()
The event type of the function, either
viewer-request
orviewer-response
. You cannot use origin-facing event types (origin-request
andorigin-response
) with a CloudFront function.If the service returns an enum value that is not available in the current SDK version,
eventType
will returnEventType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromeventTypeAsString()
.- Returns:
- The event type of the function, either
viewer-request
orviewer-response
. You cannot use origin-facing event types (origin-request
andorigin-response
) with a CloudFront function. - See Also:
EventType
-
toBuilder
public FunctionAssociation.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<FunctionAssociation.Builder,FunctionAssociation>
-
builder
public static FunctionAssociation.Builder builder()
-
serializableBuilderClass
public static Class<? extends FunctionAssociation.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-