@Generated(value="software.amazon.awssdk:codegen") public final class CollectionConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CollectionConfig.Builder,CollectionConfig>
Configuration for your collection.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CollectionConfig.Builder |
static class |
CollectionConfig.Type |
| Modifier and Type | Method and Description |
|---|---|
static CollectionConfig.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
static CollectionConfig |
fromVectorConfig(Consumer<VectorConfig.Builder> vectorConfig)
Create an instance of this class with
vectorConfig() initialized to the given value. |
static CollectionConfig |
fromVectorConfig(VectorConfig vectorConfig)
Create an instance of this class with
vectorConfig() initialized to the given value. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends CollectionConfig.Builder> |
serializableBuilderClass() |
CollectionConfig.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
CollectionConfig.Type |
type()
Retrieve an enum value representing which member of this object is populated.
|
VectorConfig |
vectorConfig()
Configuration for your vector collection type.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final VectorConfig vectorConfig()
Configuration for your vector collection type.
Dimension: The number of elements in your vector.
Dimension: The number of elements in your vector.
public CollectionConfig.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CollectionConfig.Builder,CollectionConfig>public static CollectionConfig.Builder builder()
public static Class<? extends CollectionConfig.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public static CollectionConfig fromVectorConfig(VectorConfig vectorConfig)
vectorConfig() initialized to the given value.
Configuration for your vector collection type.
Dimension: The number of elements in your vector.
vectorConfig - Configuration for your vector collection type.
Dimension: The number of elements in your vector.
public static CollectionConfig fromVectorConfig(Consumer<VectorConfig.Builder> vectorConfig)
vectorConfig() initialized to the given value.
Configuration for your vector collection type.
Dimension: The number of elements in your vector.
vectorConfig - Configuration for your vector collection type.
Dimension: The number of elements in your vector.
public CollectionConfig.Type type()
CollectionConfig.Type.UNKNOWN_TO_SDK_VERSION if the
service returned a member that is only known to a newer SDK version.
When this class is created directly in your code, this will be CollectionConfig.Type.UNKNOWN_TO_SDK_VERSION if zero
members are set, and null if more than one member is set.Copyright © 2023. All rights reserved.