Class FunctionMetadata
- java.lang.Object
-
- software.amazon.awssdk.services.cloudfront.model.FunctionMetadata
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<FunctionMetadata.Builder,FunctionMetadata>
@Generated("software.amazon.awssdk:codegen") public final class FunctionMetadata extends Object implements SdkPojo, Serializable, ToCopyableBuilder<FunctionMetadata.Builder,FunctionMetadata>
Contains metadata about a CloudFront function.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceFunctionMetadata.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FunctionMetadata.Builderbuilder()InstantcreatedTime()The date and time when the function was created.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringfunctionARN()The Amazon Resource Name (ARN) of the function.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()InstantlastModifiedTime()The date and time when the function was most recently updated.List<SdkField<?>>sdkFields()static Class<? extends FunctionMetadata.Builder>serializableBuilderClass()FunctionStagestage()The stage that the function is in, eitherDEVELOPMENTorLIVE.StringstageAsString()The stage that the function is in, eitherDEVELOPMENTorLIVE.FunctionMetadata.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. The ARN uniquely identifies the function.
- Returns:
- The Amazon Resource Name (ARN) of the function. The ARN uniquely identifies the function.
-
stage
public final FunctionStage stage()
The stage that the function is in, either
DEVELOPMENTorLIVE.When a function is in the
DEVELOPMENTstage, you can test the function withTestFunction, and update it withUpdateFunction.When a function is in the
LIVEstage, you can attach the function to a distribution's cache behavior, using the function's ARN.If the service returns an enum value that is not available in the current SDK version,
stagewill returnFunctionStage.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstageAsString().- Returns:
- The stage that the function is in, either
DEVELOPMENTorLIVE.When a function is in the
DEVELOPMENTstage, you can test the function withTestFunction, and update it withUpdateFunction.When a function is in the
LIVEstage, you can attach the function to a distribution's cache behavior, using the function's ARN. - See Also:
FunctionStage
-
stageAsString
public final String stageAsString()
The stage that the function is in, either
DEVELOPMENTorLIVE.When a function is in the
DEVELOPMENTstage, you can test the function withTestFunction, and update it withUpdateFunction.When a function is in the
LIVEstage, you can attach the function to a distribution's cache behavior, using the function's ARN.If the service returns an enum value that is not available in the current SDK version,
stagewill returnFunctionStage.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstageAsString().- Returns:
- The stage that the function is in, either
DEVELOPMENTorLIVE.When a function is in the
DEVELOPMENTstage, you can test the function withTestFunction, and update it withUpdateFunction.When a function is in the
LIVEstage, you can attach the function to a distribution's cache behavior, using the function's ARN. - See Also:
FunctionStage
-
createdTime
public final Instant createdTime()
The date and time when the function was created.
- Returns:
- The date and time when the function was created.
-
lastModifiedTime
public final Instant lastModifiedTime()
The date and time when the function was most recently updated.
- Returns:
- The date and time when the function was most recently updated.
-
toBuilder
public FunctionMetadata.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<FunctionMetadata.Builder,FunctionMetadata>
-
builder
public static FunctionMetadata.Builder builder()
-
serializableBuilderClass
public static Class<? extends FunctionMetadata.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.
-
-