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 interface
FunctionMetadata.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FunctionMetadata.Builder
builder()
Instant
createdTime()
The date and time when the function was created.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
String
functionARN()
The Amazon Resource Name (ARN) of the function.<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Instant
lastModifiedTime()
The date and time when the function was most recently updated.List<SdkField<?>>
sdkFields()
static Class<? extends FunctionMetadata.Builder>
serializableBuilderClass()
FunctionStage
stage()
The stage that the function is in, eitherDEVELOPMENT
orLIVE
.String
stageAsString()
The stage that the function is in, eitherDEVELOPMENT
orLIVE
.FunctionMetadata.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. 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
DEVELOPMENT
orLIVE
.When a function is in the
DEVELOPMENT
stage, you can test the function withTestFunction
, and update it withUpdateFunction
.When a function is in the
LIVE
stage, 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,
stage
will returnFunctionStage.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstageAsString()
.- Returns:
- The stage that the function is in, either
DEVELOPMENT
orLIVE
.When a function is in the
DEVELOPMENT
stage, you can test the function withTestFunction
, and update it withUpdateFunction
.When a function is in the
LIVE
stage, 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
DEVELOPMENT
orLIVE
.When a function is in the
DEVELOPMENT
stage, you can test the function withTestFunction
, and update it withUpdateFunction
.When a function is in the
LIVE
stage, 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,
stage
will returnFunctionStage.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstageAsString()
.- Returns:
- The stage that the function is in, either
DEVELOPMENT
orLIVE
.When a function is in the
DEVELOPMENT
stage, you can test the function withTestFunction
, and update it withUpdateFunction
.When a function is in the
LIVE
stage, 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:
toBuilder
in 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:
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.
-
-