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 interfaceFunctionAssociation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FunctionAssociation.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)EventTypeeventType()The event type of the function, eitherviewer-requestorviewer-response.StringeventTypeAsString()The event type of the function, eitherviewer-requestorviewer-response.StringfunctionARN()The Amazon Resource Name (ARN) of the function.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends FunctionAssociation.Builder>serializableBuilderClass()FunctionAssociation.BuildertoBuilder()StringtoString()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-requestorviewer-response. You cannot use origin-facing event types (origin-requestandorigin-response) with a CloudFront function.If the service returns an enum value that is not available in the current SDK version,
eventTypewill returnEventType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromeventTypeAsString().- Returns:
- The event type of the function, either
viewer-requestorviewer-response. You cannot use origin-facing event types (origin-requestandorigin-response) with a CloudFront function. - See Also:
EventType
-
eventTypeAsString
public final String eventTypeAsString()
The event type of the function, either
viewer-requestorviewer-response. You cannot use origin-facing event types (origin-requestandorigin-response) with a CloudFront function.If the service returns an enum value that is not available in the current SDK version,
eventTypewill returnEventType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromeventTypeAsString().- Returns:
- The event type of the function, either
viewer-requestorviewer-response. You cannot use origin-facing event types (origin-requestandorigin-response) with a CloudFront function. - See Also:
EventType
-
toBuilder
public FunctionAssociation.Builder toBuilder()
- Specified by:
toBuilderin 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:
equalsBySdkFieldsin 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-