Class ResponseInputItem.ApplyPatchCall.Operation
-
- All Implemented Interfaces:
public final class ResponseInputItem.ApplyPatchCall.OperationThe specific create, delete, or update instruction for the apply_patch tool call.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceResponseInputItem.ApplyPatchCall.Operation.VisitorAn interface that defines how to map each variant of Operation to a value of type T.
public final classResponseInputItem.ApplyPatchCall.Operation.CreateFileInstruction for creating a new file via the apply_patch tool.
public final classResponseInputItem.ApplyPatchCall.Operation.DeleteFileInstruction for deleting an existing file via the apply_patch tool.
public final classResponseInputItem.ApplyPatchCall.Operation.UpdateFileInstruction for updating an existing file via the apply_patch tool.
-
Method Summary
-
-
Method Detail
-
createFile
final Optional<ResponseInputItem.ApplyPatchCall.Operation.CreateFile> createFile()
Instruction for creating a new file via the apply_patch tool.
-
deleteFile
final Optional<ResponseInputItem.ApplyPatchCall.Operation.DeleteFile> deleteFile()
Instruction for deleting an existing file via the apply_patch tool.
-
updateFile
final Optional<ResponseInputItem.ApplyPatchCall.Operation.UpdateFile> updateFile()
Instruction for updating an existing file via the apply_patch tool.
-
isCreateFile
final Boolean isCreateFile()
-
isDeleteFile
final Boolean isDeleteFile()
-
isUpdateFile
final Boolean isUpdateFile()
-
asCreateFile
final ResponseInputItem.ApplyPatchCall.Operation.CreateFile asCreateFile()
Instruction for creating a new file via the apply_patch tool.
-
asDeleteFile
final ResponseInputItem.ApplyPatchCall.Operation.DeleteFile asDeleteFile()
Instruction for deleting an existing file via the apply_patch tool.
-
asUpdateFile
final ResponseInputItem.ApplyPatchCall.Operation.UpdateFile asUpdateFile()
Instruction for updating an existing file via the apply_patch tool.
-
accept
final <T extends Any> T accept(ResponseInputItem.ApplyPatchCall.Operation.Visitor<T> visitor)
-
validate
final ResponseInputItem.ApplyPatchCall.Operation validate()
-
ofCreateFile
final static ResponseInputItem.ApplyPatchCall.Operation ofCreateFile(ResponseInputItem.ApplyPatchCall.Operation.CreateFile createFile)
Instruction for creating a new file via the apply_patch tool.
-
ofDeleteFile
final static ResponseInputItem.ApplyPatchCall.Operation ofDeleteFile(ResponseInputItem.ApplyPatchCall.Operation.DeleteFile deleteFile)
Instruction for deleting an existing file via the apply_patch tool.
-
ofUpdateFile
final static ResponseInputItem.ApplyPatchCall.Operation ofUpdateFile(ResponseInputItem.ApplyPatchCall.Operation.UpdateFile updateFile)
Instruction for updating an existing file via the apply_patch tool.
-
-
-
-