Record Class IndexSetUpdateRequest
java.lang.Object
java.lang.Record
org.graylog2.rest.resources.system.indexer.requests.IndexSetUpdateRequest
- All Implemented Interfaces:
SimpleIndexSetConfig
public record IndexSetUpdateRequest(@NotBlank String title, @Nullable String description, boolean isWritable, @jakarta.validation.constraints.Min(1L) int shards, @jakarta.validation.constraints.Min(0L) int replicas, @Nullable String rotationStrategyClass, @Nullable RotationStrategyConfig rotationStrategyConfig, @Nullable String retentionStrategyClass, @Nullable RetentionStrategyConfig retentionStrategyConfig, @jakarta.validation.constraints.Min(1L) int indexOptimizationMaxNumSegments, boolean indexOptimizationDisabled, org.joda.time.Duration fieldTypeRefreshInterval, @Nullable @ValidObjectId String fieldTypeProfile, @Nullable DataTieringConfig dataTieringConfig, @Nullable Boolean useLegacyRotation)
extends Record
implements SimpleIndexSetConfig
-
Field Summary
Fields inherited from interface org.graylog2.indexer.indexset.SimpleIndexSetConfig
DEFAULT_FIELD_TYPE_REFRESH_INTERVAL, FIELD_CREATION_DATE, FIELD_DATA_TIERING, FIELD_DESCRIPTION, FIELD_INDEX_ANALYZER, FIELD_INDEX_OPTIMIZATION_DISABLED, FIELD_INDEX_OPTIMIZATION_MAX_NUM_SEGMENTS, FIELD_INDEX_PREFIX, FIELD_INDEX_TEMPLATE_TYPE, FIELD_PROFILE_ID, FIELD_REPLICAS, FIELD_RETENTION_STRATEGY, FIELD_RETENTION_STRATEGY_CLASS, FIELD_ROTATION_STRATEGY, FIELD_ROTATION_STRATEGY_CLASS, FIELD_SHARDS, FIELD_TITLE, FIELD_TYPE_REFRESH_INTERVAL, FIELD_USE_LEGACY_ROTATION, FIELD_WRITABLE, INDEX_PREFIX_REGEX -
Constructor Summary
ConstructorsConstructorDescriptionIndexSetUpdateRequest(@NotBlank String title, String description, boolean isWritable, @jakarta.validation.constraints.Min(1L) int shards, @jakarta.validation.constraints.Min(0L) int replicas, String rotationStrategyClass, RotationStrategyConfig rotationStrategyConfig, String retentionStrategyClass, RetentionStrategyConfig retentionStrategyConfig, @jakarta.validation.constraints.Min(1L) int indexOptimizationMaxNumSegments, boolean indexOptimizationDisabled, org.joda.time.Duration fieldTypeRefreshInterval, @ValidObjectId String fieldTypeProfile, DataTieringConfig dataTieringConfig, Boolean useLegacyRotation) Creates an instance of aIndexSetUpdateRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedataTieringConfigrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefieldTypeProfilerecord component.org.joda.time.DurationReturns the value of thefieldTypeRefreshIntervalrecord component.static IndexSetUpdateRequestfromIndexSetConfig(IndexSetConfig indexSet) final inthashCode()Returns a hash code value for this object.booleanReturns the value of theindexOptimizationDisabledrecord component.@jakarta.validation.constraints.Min(1L) intReturns the value of theindexOptimizationMaxNumSegmentsrecord component.booleanReturns the value of theisWritablerecord component.@jakarta.validation.constraints.Min(0L) intreplicas()Returns the value of thereplicasrecord component.Returns the value of theretentionStrategyClassrecord component.Returns the value of theretentionStrategyConfigrecord component.Returns the value of therotationStrategyClassrecord component.Returns the value of therotationStrategyConfigrecord component.@jakarta.validation.constraints.Min(1L) intshards()Returns the value of theshardsrecord component.@NotBlank Stringtitle()Returns the value of thetitlerecord component.toIndexSetConfig(String id, IndexSetConfig oldConfig) final StringtoString()Returns a string representation of this record class.Returns the value of theuseLegacyRotationrecord component.
-
Constructor Details
-
IndexSetUpdateRequest
public IndexSetUpdateRequest(@NotBlank @NotBlank String title, @Nullable String description, boolean isWritable, @Min(1L) @jakarta.validation.constraints.Min(1L) int shards, @Min(0L) @jakarta.validation.constraints.Min(0L) int replicas, @Nullable String rotationStrategyClass, @Nullable RotationStrategyConfig rotationStrategyConfig, @Nullable String retentionStrategyClass, @Nullable RetentionStrategyConfig retentionStrategyConfig, @Min(1L) @jakarta.validation.constraints.Min(1L) int indexOptimizationMaxNumSegments, boolean indexOptimizationDisabled, org.joda.time.Duration fieldTypeRefreshInterval, @ValidObjectId @Nullable @ValidObjectId String fieldTypeProfile, @Nullable DataTieringConfig dataTieringConfig, @Nullable Boolean useLegacyRotation) Creates an instance of aIndexSetUpdateRequestrecord class.- Parameters:
title- the value for thetitlerecord componentdescription- the value for thedescriptionrecord componentisWritable- the value for theisWritablerecord componentshards- the value for theshardsrecord componentreplicas- the value for thereplicasrecord componentrotationStrategyClass- the value for therotationStrategyClassrecord componentrotationStrategyConfig- the value for therotationStrategyConfigrecord componentretentionStrategyClass- the value for theretentionStrategyClassrecord componentretentionStrategyConfig- the value for theretentionStrategyConfigrecord componentindexOptimizationMaxNumSegments- the value for theindexOptimizationMaxNumSegmentsrecord componentindexOptimizationDisabled- the value for theindexOptimizationDisabledrecord componentfieldTypeRefreshInterval- the value for thefieldTypeRefreshIntervalrecord componentfieldTypeProfile- the value for thefieldTypeProfilerecord componentdataTieringConfig- the value for thedataTieringConfigrecord componentuseLegacyRotation- the value for theuseLegacyRotationrecord component
-
-
Method Details
-
useLegacyRotation
Returns the value of theuseLegacyRotationrecord component.- Returns:
- the value of the
useLegacyRotationrecord component
-
fromIndexSetConfig
-
toIndexSetConfig
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
isWritable
public boolean isWritable()Returns the value of theisWritablerecord component.- Returns:
- the value of the
isWritablerecord component
-
shards
@Min(1L) public @jakarta.validation.constraints.Min(1L) int shards()Returns the value of theshardsrecord component.- Specified by:
shardsin interfaceSimpleIndexSetConfig- Returns:
- the value of the
shardsrecord component
-
replicas
@Min(0L) public @jakarta.validation.constraints.Min(0L) int replicas()Returns the value of thereplicasrecord component.- Specified by:
replicasin interfaceSimpleIndexSetConfig- Returns:
- the value of the
replicasrecord component
-
rotationStrategyClass
Returns the value of therotationStrategyClassrecord component.- Specified by:
rotationStrategyClassin interfaceSimpleIndexSetConfig- Returns:
- the value of the
rotationStrategyClassrecord component
-
rotationStrategyConfig
Returns the value of therotationStrategyConfigrecord component.- Specified by:
rotationStrategyConfigin interfaceSimpleIndexSetConfig- Returns:
- the value of the
rotationStrategyConfigrecord component
-
retentionStrategyClass
Returns the value of theretentionStrategyClassrecord component.- Specified by:
retentionStrategyClassin interfaceSimpleIndexSetConfig- Returns:
- the value of the
retentionStrategyClassrecord component
-
retentionStrategyConfig
Returns the value of theretentionStrategyConfigrecord component.- Specified by:
retentionStrategyConfigin interfaceSimpleIndexSetConfig- Returns:
- the value of the
retentionStrategyConfigrecord component
-
indexOptimizationMaxNumSegments
@Min(1L) public @jakarta.validation.constraints.Min(1L) int indexOptimizationMaxNumSegments()Returns the value of theindexOptimizationMaxNumSegmentsrecord component.- Specified by:
indexOptimizationMaxNumSegmentsin interfaceSimpleIndexSetConfig- Returns:
- the value of the
indexOptimizationMaxNumSegmentsrecord component
-
indexOptimizationDisabled
public boolean indexOptimizationDisabled()Returns the value of theindexOptimizationDisabledrecord component.- Specified by:
indexOptimizationDisabledin interfaceSimpleIndexSetConfig- Returns:
- the value of the
indexOptimizationDisabledrecord component
-
fieldTypeRefreshInterval
public org.joda.time.Duration fieldTypeRefreshInterval()Returns the value of thefieldTypeRefreshIntervalrecord component.- Specified by:
fieldTypeRefreshIntervalin interfaceSimpleIndexSetConfig- Returns:
- the value of the
fieldTypeRefreshIntervalrecord component
-
fieldTypeProfile
Returns the value of thefieldTypeProfilerecord component.- Returns:
- the value of the
fieldTypeProfilerecord component
-
dataTieringConfig
Returns the value of thedataTieringConfigrecord component.- Specified by:
dataTieringConfigin interfaceSimpleIndexSetConfig- Returns:
- the value of the
dataTieringConfigrecord component
-