Class UpdateFileRequest.UpdateFileDetails.RemoveAiTags
-
- All Implemented Interfaces:
public final class UpdateFileRequest.UpdateFileDetails.RemoveAiTagsAn array of AITags associated with the file that you want to remove, e.g.
["car", "vehicle", "motorsports"].If you want to remove all AITags associated with the file, send a string - "all".
Note: The remove operation for
AITagsexecutes before any of theextensionsare processed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceUpdateFileRequest.UpdateFileDetails.RemoveAiTags.VisitorAn interface that defines how to map each variant of RemoveAiTags to a value of type T.
-
Method Summary
Modifier and Type Method Description final Optional<List<String>>strings()final Optional<JsonValue>all()final BooleanisStrings()final BooleanisAll()final List<String>asStrings()final JsonValueasAll()final Optional<JsonValue>_json()final <T extends Any> Taccept(UpdateFileRequest.UpdateFileDetails.RemoveAiTags.Visitor<T> visitor)Maps this instance's current variant to a value of type T using the given visitor. final UpdateFileRequest.UpdateFileDetails.RemoveAiTagsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static UpdateFileRequest.UpdateFileDetails.RemoveAiTagsofStrings(List<String> strings)final static UpdateFileRequest.UpdateFileDetails.RemoveAiTagsofAll()-
-
Method Detail
-
accept
final <T extends Any> T accept(UpdateFileRequest.UpdateFileDetails.RemoveAiTags.Visitor<T> visitor)
Maps this instance's current variant to a value of type T using the given visitor.
Note that this method is not forwards compatible with new variants from the API, unless visitor overrides Visitor.unknown. To handle variants not known to this version of the SDK gracefully, consider overriding Visitor.unknown:
import io.imagekit.core.JsonValue; import java.util.Optional; Optional<String> result = removeAiTags.accept(new RemoveAiTags.Visitor<Optional<String>>() { @Override public Optional<String> visitStrings(List<String> strings) { return Optional.of(strings.toString()); } // ... @Override public Optional<String> unknown(JsonValue json) { // Or inspect the `json`. return Optional.empty(); } });
-
validate
final UpdateFileRequest.UpdateFileDetails.RemoveAiTags validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
ofStrings
final static UpdateFileRequest.UpdateFileDetails.RemoveAiTags ofStrings(List<String> strings)
-
ofAll
final static UpdateFileRequest.UpdateFileDetails.RemoveAiTags ofAll()
-
-
-
-