@Generated(value="software.amazon.awssdk:codegen") public final class FoundationModelSummary extends Object implements SdkPojo, Serializable, ToCopyableBuilder<FoundationModelSummary.Builder,FoundationModelSummary>
Summary information for a foundation model.
| Modifier and Type | Class and Description |
|---|---|
static interface |
FoundationModelSummary.Builder |
| Modifier and Type | Method and Description |
|---|---|
static FoundationModelSummary.Builder |
builder() |
List<ModelCustomization> |
customizationsSupported()
Whether the model supports fine-tuning or continual pre-training.
|
List<String> |
customizationsSupportedAsStrings()
Whether the model supports fine-tuning or continual pre-training.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasCustomizationsSupported()
For responses, this returns true if the service returned a value for the CustomizationsSupported property.
|
int |
hashCode() |
boolean |
hasInferenceTypesSupported()
For responses, this returns true if the service returned a value for the InferenceTypesSupported property.
|
boolean |
hasInputModalities()
For responses, this returns true if the service returned a value for the InputModalities property.
|
boolean |
hasOutputModalities()
For responses, this returns true if the service returned a value for the OutputModalities property.
|
List<InferenceType> |
inferenceTypesSupported()
The inference types that the model supports.
|
List<String> |
inferenceTypesSupportedAsStrings()
The inference types that the model supports.
|
List<ModelModality> |
inputModalities()
The input modalities that the model supports.
|
List<String> |
inputModalitiesAsStrings()
The input modalities that the model supports.
|
String |
modelArn()
The ARN of the foundation model.
|
String |
modelId()
The model Id of the foundation model.
|
String |
modelName()
The name of the model.
|
List<ModelModality> |
outputModalities()
The output modalities that the model supports.
|
List<String> |
outputModalitiesAsStrings()
The output modalities that the model supports.
|
String |
providerName()
The model's provider name.
|
Boolean |
responseStreamingSupported()
Indicates whether the model supports streaming.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends FoundationModelSummary.Builder> |
serializableBuilderClass() |
FoundationModelSummary.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String modelArn()
The ARN of the foundation model.
public final String modelId()
The model Id of the foundation model.
public final String modelName()
The name of the model.
public final String providerName()
The model's provider name.
public final List<ModelModality> inputModalities()
The input modalities that the model supports.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasInputModalities() method.
public final boolean hasInputModalities()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> inputModalitiesAsStrings()
The input modalities that the model supports.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasInputModalities() method.
public final List<ModelModality> outputModalities()
The output modalities that the model supports.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasOutputModalities() method.
public final boolean hasOutputModalities()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> outputModalitiesAsStrings()
The output modalities that the model supports.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasOutputModalities() method.
public final Boolean responseStreamingSupported()
Indicates whether the model supports streaming.
public final List<ModelCustomization> customizationsSupported()
Whether the model supports fine-tuning or continual pre-training.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasCustomizationsSupported() method.
public final boolean hasCustomizationsSupported()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.public final List<String> customizationsSupportedAsStrings()
Whether the model supports fine-tuning or continual pre-training.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasCustomizationsSupported() method.
public final List<InferenceType> inferenceTypesSupported()
The inference types that the model supports.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasInferenceTypesSupported() method.
public final boolean hasInferenceTypesSupported()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.public final List<String> inferenceTypesSupportedAsStrings()
The inference types that the model supports.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasInferenceTypesSupported() method.
public FoundationModelSummary.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<FoundationModelSummary.Builder,FoundationModelSummary>public static FoundationModelSummary.Builder builder()
public static Class<? extends FoundationModelSummary.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.