Class FoundationModelLifecycle
- java.lang.Object
-
- software.amazon.awssdk.services.bedrock.model.FoundationModelLifecycle
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<FoundationModelLifecycle.Builder,FoundationModelLifecycle>
@Generated("software.amazon.awssdk:codegen") public final class FoundationModelLifecycle extends Object implements SdkPojo, Serializable, ToCopyableBuilder<FoundationModelLifecycle.Builder,FoundationModelLifecycle>
Details about whether a model version is available or deprecated.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceFoundationModelLifecycle.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FoundationModelLifecycle.Builderbuilder()InstantendOfLifeTime()Time when the model is no longer available for usebooleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()InstantlegacyTime()Time when the model enters legacy state.InstantpublicExtendedAccessTime()Public extended access portion of the legacy period, when users should expect higher pricingMap<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends FoundationModelLifecycle.Builder>serializableBuilderClass()InstantstartOfLifeTime()Launch time when the model first becomes availableFoundationModelLifecycleStatusstatus()Specifies whether a model version is available (ACTIVE) or deprecated (LEGACY.StringstatusAsString()Specifies whether a model version is available (ACTIVE) or deprecated (LEGACY.FoundationModelLifecycle.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
-
status
public final FoundationModelLifecycleStatus status()
Specifies whether a model version is available (
ACTIVE) or deprecated (LEGACY.If the service returns an enum value that is not available in the current SDK version,
statuswill returnFoundationModelLifecycleStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- Specifies whether a model version is available (
ACTIVE) or deprecated (LEGACY. - See Also:
FoundationModelLifecycleStatus
-
statusAsString
public final String statusAsString()
Specifies whether a model version is available (
ACTIVE) or deprecated (LEGACY.If the service returns an enum value that is not available in the current SDK version,
statuswill returnFoundationModelLifecycleStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- Specifies whether a model version is available (
ACTIVE) or deprecated (LEGACY. - See Also:
FoundationModelLifecycleStatus
-
startOfLifeTime
public final Instant startOfLifeTime()
Launch time when the model first becomes available
- Returns:
- Launch time when the model first becomes available
-
endOfLifeTime
public final Instant endOfLifeTime()
Time when the model is no longer available for use
- Returns:
- Time when the model is no longer available for use
-
legacyTime
public final Instant legacyTime()
Time when the model enters legacy state. Models in legacy state can still be used, but users should plan to transition to an Active model before the end of life time
- Returns:
- Time when the model enters legacy state. Models in legacy state can still be used, but users should plan to transition to an Active model before the end of life time
-
publicExtendedAccessTime
public final Instant publicExtendedAccessTime()
Public extended access portion of the legacy period, when users should expect higher pricing
- Returns:
- Public extended access portion of the legacy period, when users should expect higher pricing
-
toBuilder
public FoundationModelLifecycle.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<FoundationModelLifecycle.Builder,FoundationModelLifecycle>
-
builder
public static FoundationModelLifecycle.Builder builder()
-
serializableBuilderClass
public static Class<? extends FoundationModelLifecycle.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
-
-