@Generated(value="software.amazon.awssdk:codegen") public final class FoundationModelDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<FoundationModelDetails.Builder,FoundationModelDetails>
Information about a foundation model.
| Modifier and Type | Class and Description |
|---|---|
static interface |
FoundationModelDetails.Builder |
| Modifier and Type | Method and Description |
|---|---|
static FoundationModelDetails.Builder |
builder() |
List<ModelCustomization> |
customizationsSupported()
The customization that the model supports.
|
List<String> |
customizationsSupportedAsStrings()
The customization that the model supports.
|
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 model ARN.
|
String |
modelId()
The model identifier.
|
String |
modelName()
The model name.
|
List<ModelModality> |
outputModalities()
The output modalities that the model supports.
|
List<String> |
outputModalitiesAsStrings()
The output modalities that the model supports.
|
String |
providerName()
he model's provider name.
|
Boolean |
responseStreamingSupported()
Indicates whether the model supports streaming.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends FoundationModelDetails.Builder> |
serializableBuilderClass() |
FoundationModelDetails.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String modelArn()
The model ARN.
public final String modelId()
The model identifier.
public final String modelName()
The model name.
public final String providerName()
he 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()
The customization 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 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()
The customization 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 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 FoundationModelDetails.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<FoundationModelDetails.Builder,FoundationModelDetails>public static FoundationModelDetails.Builder builder()
public static Class<? extends FoundationModelDetails.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.